Function at 0x572040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
xor eax, eax
push ebp
mov ebp, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp]
push edi
mov edi, dword [eax]
cmp byte [edi + 0x1e], 0
mov dword [esp + 0x50], eax
mov dword [esp + 8], edi
jne 0x572724
mov eax, dword [esp + 0x54]
lea eax, [eax + eax*4]
add eax, eax
push ebx
mov ebx, dword [ebp + 0x1c]
add eax, eax
add eax, eax
add ebx, eax
push esi
mov esi, dword [ebx]
mov ecx, dword [esi + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
call fcn.005432f0
mov dword [esp + 0x40], eax
movzx eax, byte [esi]
add esp, 8
cmp eax, 0x48
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], eax
jne 0x5720f0
test word [esi + 2], 0x800
je 0x5720da
mov edx, dword [esi + 0x10]
mov edi, dword [esp + 0x18]
push edx
call fcn.0053b5f0
mov edi, dword [esp + 0x14]
add esp, 4
jmp 0x57210d
mov eax, dword [esp + 0x18]
mov esi, dword [esi + 0x10]
push eax
call fcn.005433d0
mov esi, dword [esp + 0x18]
add esp, 4
jmp 0x57210d
cmp eax, 0x49
jne 0x5720fc
xor eax, eax
mov dword [ebx + 0x1c], eax
jmp 0x572110
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.005432f0
add esp, 8
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.005432f0
add esp, 8
test byte [esi + 2], 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
je 0x57215a
movsx esi, word [esi + 0x20]
mov edx, dword [esp + 0x18]
call fcn.0053b5c0
or dword [esp + 0x40], eax
or dword [esp + 0x44], edx
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
add eax, 0xffffffff
adc edx, 0xffffffff
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
or eax, 0xffffffff
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x20], ecx
xor ecx, ecx
cmp eax, 0x48
mov dword [ebx + 0x24], edx
mov word [ebx + 0x10], cx
je 0x572193
cmp eax, 0x4c
jl 0x57218a
cmp eax, 0x50
jle 0x572193
cmp eax, 0x49
jne 0x5722ac
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
and ecx, dword [esp + 0x38]
and edx, dword [esp + 0x3c]
or ecx, edx
jne 0x5722aa
mov ecx, dword [esi + 8]
cmp byte [ecx], 0x98
mov edx, dword [esi + 0xc]
mov dword [esp + 0x24], edx
jne 0x5721d2
mov edx, dword [ecx + 0x18]
mov dword [ebx + 8], edx
movsx ecx, word [ecx + 0x1c]
mov dword [ebx + 0xc], ecx
call fcn.0053b750
mov edx, dword [esp + 0x24]
mov word [ebx + 0x10], ax
test edx, edx
je 0x5723ce
cmp byte [edx], 0x98
jne 0x5723ce
cmp dword [ebx + 8], 0
jl 0x57224c
push 0
push 0
push esi
push edi
call fcn.0054ecc0
add esp, 0x10
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x572211
push esi
push edi
call fcn.00541350
add esp, 8
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x40
ret
push 3
mov ebx, esi
mov edi, ebp
call fcn.005431d0
add esp, 4
test eax, eax
je 0x572722
mov ecx, dword [esp + 0x5c]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + edx*8]
mov dword [eax + 4], ecx
mov ebx, dword [ebp + 0x1c]
add ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
or byte [ebx + 0x12], 8
mov byte [ebx + 0x13], 1
jmp 0x572250
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x58]
call fcn.00569ba0
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x24]
mov dword [edx + 8], ecx
movsx eax, word [eax + 0x1c]
mov ecx, dword [esp + 0x3c]
or ecx, dword [esp + 0x4c]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x38]
or eax, dword [esp + 0x48]
mov dword [edx + 0x1c], ecx
mov ecx, dword [esp + 0x40]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [edx + 0x20], ecx
mov dword [edx + 0x24], eax
movzx eax, byte [esi]
call fcn.0053b750
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov word [edx + 0x10], ax
jmp 0x5723ce
xor ecx, ecx
mov al, byte [esi]
cmp al, 0x47
jne 0x5723b0
cmp byte [ebp + 0x10], 0x45
jne 0x5723b0
mov edx, dword [esi + 0x10]
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
nop
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0xc]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + ecx]
push 0
push 0
push eax
push edi
call fcn.0054ecc0
mov esi, dword [esi + 8]
push 0
push 0
push esi
push edi
mov ebx, eax
call fcn.0054ecc0
mov edx, dword [esp + 0x78]
mov esi, dword [edx]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x40]
movzx ecx, byte [eax + 0x5fa940]
mov dword [esp + 0x58], ecx
add esp, 0x20
mov ecx, 0x30
call fcn.0053d980
mov esi, eax
test esi, esi
je 0x572345
push 0x30
push 0
push esi
call fcn.005b5540
mov al, byte [esp + 0x44]
add esp, 0xc
mov byte [esi], al
mov word [esi + 0x1e], 0xffff
mov dword [esi + 0x2c], 1
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x40]
mov edi, ebx
mov ebx, dword [edx]
mov ecx, esi
call fcn.00546b50
push 3
mov ebx, esi
mov edi, ebp
call fcn.005431d0
mov esi, eax
mov eax, dword [esp + 0x58]
push esi
push ebp
push eax
call fcn.00572040
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x2c]
add dword [esp + 0x30], 1
mov edi, dword [esp + 0x20]
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x6c]
lea edx, [esi + esi*4]
mov esi, dword [esp + 0x24]
mov dword [eax + edx*8 + 4], ecx
mov eax, dword [esp + 0x34]
add eax, 0x14
add esp, 0x10
cmp eax, 0x28
mov dword [esp + 0x24], eax
jl 0x5722d0
mov byte [ebx + 0x13], 2
jmp 0x5723ce
cmp al, 0x44
jne 0x5723ce
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
push edx
push ebp
push eax
call fcn.005530d0
mov ebx, dword [ebp + 0x1c]
add esp, 0xc
add ebx, dword [esp + 0x1c]
cmp byte [ebp + 0x10], 0x45
jne 0x5725ba
mov eax, dword [esp + 0x58]
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
lea edx, [esp + 0x3c]
mov eax, esi
call fcn.00571e50
add esp, 0xc
test eax, eax
je 0x5725ba
mov ecx, dword [esi + 0x10]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx + 0xc]
mov ebx, dword [edx + 0x14]
push 0
push 0
push eax
push edi
mov dword [esp + 0x50], ebx
call fcn.0054ecc0
mov edx, dword [esp + 0x40]
add esp, 0x10
cmp byte [edi + 0x1e], 0
mov dword [esp + 0x34], eax
jne 0x572455
mov ecx, dword [eax + 4]
call fcn.00532f70
test edx, edx
lea ecx, [eax + ecx - 1]
mov al, byte [ecx]
je 0x572451
cmp al, 0x40
jne 0x572448
mov dword [esp + 0x2c], 0
movzx eax, al
mov al, byte [eax + 0x5f9b18]
add al, 1
mov byte [ecx], al
test edx, edx
mov eax, str.NOCASE
jne 0x572463
mov eax, str.BINARY
push 0
push eax
mov eax, edi
call fcn.00548840
push 0
push 0
mov esi, eax
push ebx
push edi
mov dword [esp + 0x50], esi
call fcn.0054ecc0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x572494
test esi, esi
je 0x572494
or word [ebx + 2], 0x100
mov dword [ebx + 0x14], esi
mov ecx, dword [esp + 0x58]
mov esi, dword [ecx]
mov ecx, 0x30
call fcn.0053d980
mov esi, eax
test esi, esi
je 0x5724c7
push 0x30
push 0
push esi
call fcn.005b5540
add esp, 0xc
mov byte [esi], 0x50
mov word [esi + 0x1e], 0xffff
mov dword [esi + 0x2c], 1
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x28]
mov eax, ebx
mov ebx, dword [edx]
mov ecx, esi
call fcn.00546b50
push 3
mov ebx, esi
mov edi, ebp
call fcn.005431d0
push eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
push ebp
push eax
call fcn.00572040
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
push 0
push 0
push ecx
push edx
call fcn.0054ecc0
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x572522
mov eax, dword [esp + 0x38]
test eax, eax
je 0x572522
or word [ebx + 2], 0x100
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x58]
mov esi, dword [eax]
mov ecx, 0x30
call fcn.0053d980
mov esi, eax
test esi, esi
je 0x572555
push 0x30
push 0
push esi
call fcn.005b5540
add esp, 0xc
mov byte [esi], 0x4f
mov word [esi + 0x1e], 0xffff
mov dword [esi + 0x2c], 1
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x34]
mov eax, ebx
mov ebx, dword [edx]
mov ecx, esi
call fcn.00546b50
push 3
mov ebx, esi
mov edi, ebp
call fcn.005431d0
mov esi, eax
mov eax, dword [esp + 0x58]
push esi
push ebp
push eax
call fcn.00572040
mov ebx, dword [ebp + 0x1c]
add ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
add esp, 0x10
cmp dword [esp + 0x2c], 0
je 0x5725b6
mov eax, dword [esp + 0x30]
mov edx, dword [ebp + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x5c]
mov dword [edx + ecx*8 + 4], eax
mov edx, dword [ebp + 0x1c]
lea ecx, [esi + esi*4]
mov dword [edx + ecx*8 + 4], eax
mov byte [ebx + 0x13], 2
mov esi, dword [esp + 0x14]
cmp byte [esi], 0x97
jne 0x572714
mov ecx, dword [esi + 4]
mov edx, str.match
call fcn.00533050
test eax, eax
jne 0x572714
mov eax, dword [esi + 0x10]
cmp dword [eax], 2
jne 0x572714
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
cmp byte [ecx], 0x98
jne 0x572714
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 0xc]
mov esi, dword [eax]
mov ecx, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
push esi
push ecx
mov dword [esp + 0x38], eax
call fcn.005432f0
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x20]
push edx
push eax
call fcn.005432f0
and eax, dword [esp + 0x50]
and edx, dword [esp + 0x54]
add esp, 0x10
or eax, edx
jne 0x572714
push eax
push eax
push esi
push edi
call fcn.0054ecc0
mov ecx, dword [esp + 0x68]
mov esi, dword [ecx]
add esp, 0x10
mov ecx, 0x30
mov edi, eax
call fcn.0053d980
mov esi, eax
test esi, esi
je 0x572678
push 0x30
push 0
push esi
call fcn.005b5540
add esp, 0xc
mov byte [esi], 0x32
mov word [esi + 0x1e], 0xffff
mov dword [esi + 0x2c], 1
test esi, esi
mov edx, dword [esp + 0x58]
mov ebx, dword [edx]
jne 0x572695
push esi
push ebx
call fcn.00541350
push edi
push ebx
call fcn.00541350
add esp, 0x10
jmp 0x5726b6
test edi, edi
je 0x5726b1
mov eax, 0x100
mov dword [esi + 0xc], edi
test word [edi + 2], ax
je 0x5726b1
or word [esi + 2], ax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
call fcn.00539350
push 3
mov ebx, esi
mov edi, ebp
call fcn.005431d0
mov edx, dword [ebp + 0x1c]
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*8]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x1c], edx
mov edx, dword [ecx + 0x18]
mov dword [eax + 8], edx
movsx ecx, word [ecx + 0x1c]
mov edx, dword [esp + 0x60]
mov dword [eax + 0xc], ecx
mov word [eax + 0x10], 0x40
mov dword [eax + 4], edx
mov ebx, dword [ebp + 0x1c]
add ebx, dword [esp + 0x20]
add esp, 4
mov ecx, dword [ebx + 0x20]
or byte [ebx + 0x12], 8
mov byte [ebx + 0x13], 1
mov dword [eax + 0x20], ecx
mov edx, dword [ebx + 0x24]
mov dword [eax + 0x24], edx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
or dword [ebx + 0x18], eax
or dword [ebx + 0x1c], ecx
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x40
ret