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

Disassembly:
push 0xffffffffffffffff
push 0x5f08cb
mov eax, dword fs:[0]
push eax
sub esp, 0x6c0
mov eax, dword [0x667050]
xor eax, esp
mov dword [esp + 0x6bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x667050]
xor eax, esp
push eax
lea eax, [esp + 0x6d4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6e4]
mov ebx, dword [esp + 0x6e8]
mov esi, ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1c], ebp
mov edi, edx
mov dword [esp + 0x14], 0
call dword [0x61049c]
lea ecx, [esp + 0x74]
mov dword [esp + 0x6dc], 1
call dword [0x61049c]
mov byte [esp + 0x6dc], 2
mov eax, dword [0x610548]
mov ecx, dword [eax]
push ecx
push 0x612780
mov ecx, edi
call dword [0x610544]
mov edx, dword [0x610548]
cmp eax, dword [edx]
je 0x521cb1
push eax
push 0
lea eax, [esp + 0x60]
push eax
mov ecx, edi
call dword [0x61053c]
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0x6e0], 3
call dword [0x61059c]
lea ecx, [esp + 0x58]
mov byte [esp + 0x6dc], 2
call dword [0x6105a0]
push esi
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x60]
push edx
call fcn.004c9450
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x6e0], 4
call dword [0x61059c]
lea ecx, [esp + 0x58]
mov byte [esp + 0x6dc], 2
call dword [0x6105a0]
lea eax, [esp + 0x3c]
push eax
call fcn.004d7a10
add esp, 4
test al, al
je 0x521cb1
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call dword [0x610494]
lea ecx, [esp + 0x74]
mov dword [esp + 0x14], 1
mov byte [esp + 0x6dc], 1
call dword [0x6105a0]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6dc], 0
call dword [0x6105a0]
mov eax, ebp
jmp 0x522178
push esi
lea edx, [esp + 0x5c]
push ebx
push edx
call fcn.004c9450
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x6e0], 5
call dword [0x61059c]
lea ecx, [esp + 0x58]
mov byte [esp + 0x6dc], 2
call dword [0x6105a0]
lea eax, [esp + 0x3c]
push eax
call fcn.004d7a10
add esp, 4
test al, al
je 0x521d08
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebp
call dword [0x610494]
jmp 0x521c7e
xor edi, edi
push 0x208
lea edx, [esp + 0x2be]
push edi
push edx
mov word [esp + 0x2c4], di
call fcn.005e6f30
add esp, 0xc
push 0x104
lea eax, [esp + 0x2bc]
push eax
call dword [0x6101ec]
lea ecx, [esp + 0x2b8]
push ecx
lea ecx, [esp + 0x5c]
call dword [0x610498]
push esi
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x98]
mov bl, 6
push eax
mov byte [esp + 0x6e8], bl
call fcn.004c9450
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x6e0], 7
call dword [0x61059c]
lea ecx, [esp + 0x90]
mov byte [esp + 0x6dc], bl
call dword [0x6105a0]
lea ecx, [esp + 0x58]
mov byte [esp + 0x6dc], 2
call dword [0x6105a0]
lea ecx, [esp + 0x3c]
push ecx
call fcn.004d7a10
add esp, 4
test al, al
je 0x521dc8
lea edx, [esp + 0x3c]
push edx
mov ecx, ebp
call dword [0x610494]
jmp 0x521c7e
push 0x208
lea eax, [esp + 0xb2]
push edi
push eax
mov word [esp + 0xb8], di
call fcn.005e6f30
add esp, 0xc
push 0x104
lea ecx, [esp + 0xb0]
push ecx
call dword [0x6101ac]
lea edx, [esp + 0xac]
push edx
lea ecx, [esp + 0x5c]
call dword [0x610498]
push esi
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x98]
push ecx
mov byte [esp + 0x6e8], 8
call fcn.004c9450
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x6e0], 9
call dword [0x61059c]
lea ecx, [esp + 0x90]
mov byte [esp + 0x6dc], 8
call dword [0x6105a0]
lea ecx, [esp + 0x58]
mov byte [esp + 0x6dc], 2
call dword [0x6105a0]
lea edx, [esp + 0x3c]
push edx
call fcn.004d7a10
add esp, 4
test al, al
je 0x521e86
lea eax, [esp + 0x3c]
push eax
mov ecx, ebp
call dword [0x610494]
jmp 0x521c7e
mov ebp, dword [0x6102c0]
push edi
push edi
push str.path
call ebp
mov edi, eax
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005e693a
add esp, 4
push edi
mov ebx, eax
push ebx
push str.path
call ebp
test ebx, ebx
mov word [ebx + edi*2], 0
mov edi, ebx
mov ebp, ebx
je 0x521faa
movzx eax, word [ebp]
test ax, ax
je 0x521faa
cmp ax, 0x3b
jne 0x521fa1
push 0x208
lea eax, [esp + 0x4ca]
push 0
push eax
mov word [esp + 0x4d0], 0
call fcn.005e6f30
mov ecx, ebp
sub ecx, edi
sar ecx, 1
push ecx
push edi
lea edx, [esp + 0x4d8]
push 0x104
push edx
call dword [0x6106cc]
add esp, 0x1c
lea eax, [esp + 0x4c4]
push eax
lea ecx, [esp + 0x5c]
call dword [0x610498]
push esi
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x98]
push edx
mov byte [esp + 0x6e8], 0xa
call fcn.004c9450
add esp, 0xc
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x6e0], 0xb
call dword [0x61059c]
lea ecx, [esp + 0x90]
mov byte [esp + 0x6dc], 0xa
call dword [0x6105a0]
lea ecx, [esp + 0x58]
mov byte [esp + 0x6dc], 2
call dword [0x6105a0]
lea eax, [esp + 0x3c]
push eax
call fcn.004d7a10
add esp, 4
test al, al
jne 0x521fda
lea edi, [ebp + 2]
add ebp, 2
jne 0x521ed0
push ebx
call fcn.005e6954
add esp, 4
cmp dword [esp + 0x88], 0
je 0x522139
mov ebp, 8
cmp dword [esi + 0x18], ebp
mov dword [esp + 0x18], 0
lea edi, [esi + 4]
jb 0x521ff9
mov eax, dword [edi]
jmp 0x521ffb
push ebx
call fcn.005e6954
mov esi, dword [esp + 0x20]
add esp, 4
lea ecx, [esp + 0x3c]
push ecx
mov ecx, esi
call dword [0x610494]
jmp 0x52214a
mov eax, edi
mov ebx, dword [0x6106c8]
lea edx, [esp + 0x18]
push edx
push 0x62c298
push eax
call ebx
add esp, 0xc
cmp dword [esp + 0x18], 0
jne 0x52203a
cmp dword [esi + 0x18], ebp
jb 0x52201f
mov edi, dword [edi]
lea eax, [esp + 0x18]
push eax
push str.msvcp_d.dll
push edi
call ebx
add esp, 0xc
cmp dword [esp + 0x18], 0
je 0x522139
lea ecx, [esp + 0x90]
call dword [0x61049c]
mov bl, 0xc
mov byte [esp + 0x6dc], bl
mov ecx, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x94]
push str.Microsoft.VC_d.CRT
push edx
call fcn.004ce830
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x84]
push ecx
lea edx, [esp + 0x6c]
push edx
call fcn.004c9450
push esi
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x40]
push ecx
mov byte [esp + 0x700], 0xd
call fcn.004c9450
add esp, 0x24
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x6e0], 0xe
call dword [0x61059c]
lea ecx, [esp + 0x20]
mov byte [esp + 0x6dc], 0xd
call dword [0x6105a0]
lea edx, [esp + 0x3c]
push edx
call fcn.004d7a10
add esp, 4
test al, al
je 0x522113
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
call dword [0x610494]
lea ecx, [esp + 0x58]
mov dword [esp + 0x14], 1
mov byte [esp + 0x6dc], bl
call dword [0x6105a0]
lea ecx, [esp + 0x90]
mov byte [esp + 0x6dc], 2
call dword [0x6105a0]
jmp 0x522152
lea ecx, [esp + 0x58]
mov byte [esp + 0x6dc], bl
call dword [0x6105a0]
lea ecx, [esp + 0x90]
mov byte [esp + 0x6dc], 2
call dword [0x6105a0]
mov esi, dword [esp + 0x1c]
push 0x6111d4
mov ecx, esi
call dword [0x610498]
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x74]
mov byte [esp + 0x6dc], 1
call dword [0x6105a0]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x6dc], 0
call dword [0x6105a0]
mov eax, esi
mov ecx, dword [esp + 0x6d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6bc]
xor ecx, esp
call fcn.005e693f
add esp, 0x6cc
ret