Function at 0x571020
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 0x571704
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.005422d0
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 0x5710d0
test word [esi + 2], 0x800
je 0x5710ba
mov edx, dword [esi + 0x10]
mov edi, dword [esp + 0x18]
push edx
call fcn.0053a5d0
mov edi, dword [esp + 0x14]
add esp, 4
jmp 0x5710ed
mov eax, dword [esp + 0x18]
mov esi, dword [esi + 0x10]
push eax
call fcn.005423b0
mov esi, dword [esp + 0x18]
add esp, 4
jmp 0x5710ed
cmp eax, 0x49
jne 0x5710dc
xor eax, eax
mov dword [ebx + 0x1c], eax
jmp 0x5710f0
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x18]
push ecx
push edx
call fcn.005422d0
add esp, 8
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.005422d0
add esp, 8
test byte [esi + 2], 1
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
je 0x57113a
movsx esi, word [esi + 0x20]
mov edx, dword [esp + 0x18]
call fcn.0053a5a0
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 0x571173
cmp eax, 0x4c
jl 0x57116a
cmp eax, 0x50
jle 0x571173
cmp eax, 0x49
jne 0x57128c
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
and ecx, dword [esp + 0x38]
and edx, dword [esp + 0x3c]
or ecx, edx
jne 0x57128a
mov ecx, dword [esi + 8]
cmp byte [ecx], 0x98
mov edx, dword [esi + 0xc]
mov dword [esp + 0x24], edx
jne 0x5711b2
mov edx, dword [ecx + 0x18]
mov dword [ebx + 8], edx
movsx ecx, word [ecx + 0x1c]
mov dword [ebx + 0xc], ecx
call fcn.0053a730
mov edx, dword [esp + 0x24]
mov word [ebx + 0x10], ax
test edx, edx
je 0x5713ae
cmp byte [edx], 0x98
jne 0x5713ae
cmp dword [ebx + 8], 0
jl 0x57122c
push 0
push 0
push esi
push edi
call fcn.0054dca0
add esp, 0x10
cmp byte [edi + 0x1e], 0
mov esi, eax
je 0x5711f1
push esi
push edi
call fcn.00540330
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.005421b0
add esp, 4
test eax, eax
je 0x571702
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 0x571230
mov dword [esp + 0x24], ebx
mov edi, dword [esp + 0x58]
call fcn.00568b80
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.0053a730
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
mov word [edx + 0x10], ax
jmp 0x5713ae
xor ecx, ecx
mov al, byte [esi]
cmp al, 0x47
jne 0x571390
cmp byte [ebp + 0x10], 0x45
jne 0x571390
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.0054dca0
mov esi, dword [esi + 8]
push 0
push 0
push esi
push edi
mov ebx, eax
call fcn.0054dca0
mov edx, dword [esp + 0x78]
mov esi, dword [edx]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x40]
movzx ecx, byte [eax + 0x5f9940]
mov dword [esp + 0x58], ecx
add esp, 0x20
mov ecx, 0x30
call fcn.0053c960
mov esi, eax
test esi, esi
je 0x571325
push 0x30
push 0
push esi
call fcn.005b4520
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.00545b30
push 3
mov ebx, esi
mov edi, ebp
call fcn.005421b0
mov esi, eax
mov eax, dword [esp + 0x58]
push esi
push ebp
push eax
call fcn.00571020
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 0x5712b0
mov byte [ebx + 0x13], 2
jmp 0x5713ae
cmp al, 0x44
jne 0x5713ae
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x54]
push edx
push ebp
push eax
call fcn.005520b0
mov ebx, dword [ebp + 0x1c]
add esp, 0xc
add ebx, dword [esp + 0x1c]
cmp byte [ebp + 0x10], 0x45
jne 0x57159a
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.00570e30
add esp, 0xc
test eax, eax
je 0x57159a
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.0054dca0
mov edx, dword [esp + 0x40]
add esp, 0x10
cmp byte [edi + 0x1e], 0
mov dword [esp + 0x34], eax
jne 0x571435
mov ecx, dword [eax + 4]
call fcn.00531f50
test edx, edx
lea ecx, [eax + ecx - 1]
mov al, byte [ecx]
je 0x571431
cmp al, 0x40
jne 0x571428
mov dword [esp + 0x2c], 0
movzx eax, al
mov al, byte [eax + 0x5f8b18]
add al, 1
mov byte [ecx], al
test edx, edx
mov eax, str.NOCASE
jne 0x571443
mov eax, str.BINARY
push 0
push eax
mov eax, edi
call fcn.00547820
push 0
push 0
mov esi, eax
push ebx
push edi
mov dword [esp + 0x50], esi
call fcn.0054dca0
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x571474
test esi, esi
je 0x571474
or word [ebx + 2], 0x100
mov dword [ebx + 0x14], esi
mov ecx, dword [esp + 0x58]
mov esi, dword [ecx]
mov ecx, 0x30
call fcn.0053c960
mov esi, eax
test esi, esi
je 0x5714a7
push 0x30
push 0
push esi
call fcn.005b4520
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.00545b30
push 3
mov ebx, esi
mov edi, ebp
call fcn.005421b0
push eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
push ebp
push eax
call fcn.00571020
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x20]
push 0
push 0
push ecx
push edx
call fcn.0054dca0
mov ebx, eax
add esp, 0x20
test ebx, ebx
je 0x571502
mov eax, dword [esp + 0x38]
test eax, eax
je 0x571502
or word [ebx + 2], 0x100
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 0x58]
mov esi, dword [eax]
mov ecx, 0x30
call fcn.0053c960
mov esi, eax
test esi, esi
je 0x571535
push 0x30
push 0
push esi
call fcn.005b4520
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.00545b30
push 3
mov ebx, esi
mov edi, ebp
call fcn.005421b0
mov esi, eax
mov eax, dword [esp + 0x58]
push esi
push ebp
push eax
call fcn.00571020
mov ebx, dword [ebp + 0x1c]
add ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x20]
add esp, 0x10
cmp dword [esp + 0x2c], 0
je 0x571596
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 0x5716f4
mov ecx, dword [esi + 4]
mov edx, str.match
call fcn.00532030
test eax, eax
jne 0x5716f4
mov eax, dword [esi + 0x10]
cmp dword [eax], 2
jne 0x5716f4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
cmp byte [ecx], 0x98
jne 0x5716f4
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.005422d0
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.005422d0
and eax, dword [esp + 0x50]
and edx, dword [esp + 0x54]
add esp, 0x10
or eax, edx
jne 0x5716f4
push eax
push eax
push esi
push edi
call fcn.0054dca0
mov ecx, dword [esp + 0x68]
mov esi, dword [ecx]
add esp, 0x10
mov ecx, 0x30
mov edi, eax
call fcn.0053c960
mov esi, eax
test esi, esi
je 0x571658
push 0x30
push 0
push esi
call fcn.005b4520
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 0x571675
push esi
push ebx
call fcn.00540330
push edi
push ebx
call fcn.00540330
add esp, 0x10
jmp 0x571696
test edi, edi
je 0x571691
mov eax, 0x100
mov dword [esi + 0xc], edi
test word [edi + 2], ax
je 0x571691
or word [esi + 2], ax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
call fcn.00538330
push 3
mov ebx, esi
mov edi, ebp
call fcn.005421b0
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