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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x86da3b
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push ebp
push esi
mov esi, dword [esp + 0xb8]
push edi
mov ebp, ecx
xor edi, edi
mov dword [eax], edi
mov eax, dword [ebp + 0x3c]
push edi
push eax
push esi
call fcn.0048c770
add esp, 0xc
test eax, eax
je 0x51312e
mov ecx, dword [esp + 0xb8]
push esi
lea edx, [esp + 0x44]
push ecx
push edx
call fcn.00508340
add esp, 0xc
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0xb4], edi
call fcn.00617650
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 2
call fcn.00831eeb
mov eax, dword [esp + 0x10]
mov ecx, 0x9ce3b8
push eax
call fcn.005239e0
mov esi, eax
cmp esi, edi
jne 0x512ffc
cmp dword [ebp + 0x40], edi
je 0x512ffc
mov dword [esp + 0x24], 1
xor ebx, ebx
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x3c], ebx
cmp eax, edi
je 0x512e6d
mov ecx, dword [esp + 0x10]
push edi
push ecx
call fcn.005e5e90
add esp, 8
cmp eax, edi
je 0x51311a
mov edx, dword [0x8ab26c]
mov dword [esp + 0x14], edx
push 0x2e
lea ecx, [esp + 0x14]
mov byte [esp + 0xb4], 3
call fcn.006190d0
cmp eax, 0xffffffff
jle 0x512ec1
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
call fcn.0061a220
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xb4], 4
call fcn.00618070
lea ecx, [esp + 0x1c]
mov byte [esp + 0xb0], 3
call fcn.00617ec0
mov eax, dword [ebp + 0x34]
cmp eax, edi
je 0x5131b1
cmp esi, edi
jne 0x512ede
cmp dword [esp + 0x24], edi
jne 0x512ede
cmp ebx, edi
je 0x513109
cmp eax, edi
je 0x5131b1
cmp esi, edi
je 0x5131b1
lea ecx, [esp + 0x48]
call fcn.0061ebd0
mov esi, 0x893fcc
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x58]
mov byte [esp + 0xb0], 6
call fcn.0061ebd0
mov bl, 7
lea ecx, [esp + 0x78]
mov byte [esp + 0xb0], bl
call fcn.0082b045
mov eax, dword [0x8ab26c]
mov dword [esp + 0x18], eax
xor ecx, ecx
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], ecx
lea edx, [esp + 0x44]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x6c]
push eax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x84]
push edx
lea ecx, [esp + 0x68]
push eax
lea edx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x60]
push edx
push eax
push ecx
mov ecx, 0x9ce3b8
mov byte [esp + 0xd4], 0xa
mov dword [esp + 0x68], edi
call fcn.00525090
cmp eax, edi
je 0x51301b
lea ecx, [esp + 0x20]
mov byte [esp + 0xb0], 9
call fcn.00617ec0
lea ecx, [esp + 0x18]
mov byte [esp + 0xb0], 8
call fcn.00617ec0
lea ecx, [esp + 0x78]
mov byte [esp + 0xb0], bl
call fcn.0082b078
lea ecx, [esp + 0x58]
mov byte [esp + 0xb0], 6
call fcn.0061ebe0
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0xb0], 0xb
cmp eax, edi
je 0x5130f8
jmp 0x5130ef
cmp esi, edi
mov dword [esp + 0x24], edi
je 0x512e4a
cmp dword [ebp + 0x44], edi
je 0x512e4a
mov ebx, 1
jmp 0x512e4c
mov eax, dword [esp + 0x30]
xor edx, edx
cmp eax, edi
jle 0x513098
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x1c], edi
mov ecx, 4
lea esi, [ebp + 0x50]
xor ebx, ebx
repe cmpsd dword [esi], dword es:[edi]
je 0x513046
mov ecx, dword [ebp + 0x48]
test ecx, ecx
je 0x513078
mov ecx, dword [ebp + 0x4c]
test ecx, ecx
jne 0x51305c
mov ecx, dword [ebp + 0x60]
mov esi, dword [eax]
cmp ecx, esi
jbe 0x513135
jmp 0x513078
mov esi, dword [eax]
cmp ecx, 1
mov ecx, dword [ebp + 0x60]
jne 0x513070
cmp ecx, esi
je 0x513135
jmp 0x513078
cmp ecx, esi
jae 0x513135
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
inc edx
add edi, 0x10
add eax, 4
cmp edx, ecx
mov dword [esp + 0x1c], edi
jl 0x513031
mov esi, 0x893fcc
mov bl, 7
xor edi, edi
lea ecx, [esp + 0x20]
mov byte [esp + 0xb0], 9
call fcn.00617ec0
lea ecx, [esp + 0x18]
mov byte [esp + 0xb0], 8
call fcn.00617ec0
lea ecx, [esp + 0x78]
mov byte [esp + 0xb0], bl
call fcn.0082b078
lea ecx, [esp + 0x58]
mov byte [esp + 0xb0], 6
call fcn.0061ebe0
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x2c]
mov byte [esp + 0xb0], 0xc
cmp eax, edi
je 0x5130f8
push eax
call fcn.008325dd
add esp, 4
lea ecx, [esp + 0x48]
mov byte [esp + 0xb0], 3
call fcn.0061ebe0
lea ecx, [esp + 0x14]
mov byte [esp + 0xb0], 2
call fcn.00617ec0
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00617ec0
xor eax, eax
jmp 0x513291
lea ecx, [esp + 0x20]
mov byte [esp + 0xb0], 9
call fcn.00617ec0
lea ecx, [esp + 0x18]
mov byte [esp + 0xb0], 8
call fcn.00617ec0
lea ecx, [esp + 0x78]
mov byte [esp + 0xb0], 7
call fcn.0082b078
lea ecx, [esp + 0x58]
mov byte [esp + 0xb0], 6
call fcn.0061ebe0
mov dword [esp + 0x28], 0x893fcc
mov eax, dword [esp + 0x2c]
mov byte [esp + 0xb0], 0xd
test eax, eax
je 0x51319a
push eax
call fcn.008325dd
add esp, 4
lea ecx, [esp + 0x48]
mov byte [esp + 0xb0], 3
call fcn.0061ebe0
mov ebx, dword [esp + 0x3c]
xor edi, edi
cmp dword [esp + 0x24], edi
jne 0x5131bb
cmp ebx, edi
je 0x513231
lea ecx, [esp + 0x8c]
call fcn.005f3c35
mov eax, dword [esp + 0x10]
mov byte [esp + 0xb0], 0xe
cmp dword [eax - 8], 0x104
jge 0x51321d
push edi
push eax
lea ecx, [esp + 0x94]
call fcn.005f3cfa
test eax, eax
je 0x51321d
cmp dword [ebp + 0x28], edi
je 0x51321d
lea ecx, [esp + 0x8c]
call fcn.005f3f20
lea ecx, [esp + 0x8c]
call fcn.005f417a
mov ecx, dword [ebp + 0x28]
cmp eax, 0x1400000
sbb eax, eax
neg eax
mov dword [ecx + 0x51c], eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0xb0], 3
call fcn.005f3c74
mov ecx, dword [ebp + 0x28]
cmp ecx, edi
je 0x51325a
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xbc]
push edx
mov edx, dword [esp + 0xbc]
push edi
push eax
mov eax, dword [ebp + 0x2c]
push edx
push eax
call fcn.00510310
mov edx, dword [esp + 0xc0]
xor ecx, ecx
mov byte [esp + 0xb0], 2
cmp dword [edx], edi
sete cl
mov esi, ecx
lea ecx, [esp + 0x14]
call fcn.00617ec0
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.00617ec0
mov eax, esi
mov ecx, dword [esp + 0xa8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret 0xc