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

Disassembly:
push 0xffffffffffffffff
push 0x5e5648
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x638190]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edx, dword [esp + 0x70]
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 4]
mov esi, 1
mov dword [esp + 0x14], esi
test eax, eax
jne 0x514908
mov eax, esi
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x70]
test esi, esi
je 0x5148e4
mov eax, dword [ecx + 4]
mov esi, dword [eax + 4]
mov ecx, dword [esi + 0x10]
mov edi, dword [edx + 4]
cmp ecx, edi
mov dword [esp + 0x20], 0
jge 0x51492d
cmp dword [esi + 8], edi
jl 0x514b7a
mov edx, dword [esi + 0xc]
mov ebp, dword [esi + 4]
cmp edx, ebp
jge 0x51493b
mov ebx, edx
jmp 0x51493f
mov ebx, ebp
mov ebp, edx
mov eax, dword [esi + 8]
cmp ecx, eax
mov dword [esp + 0x1c], ecx
jg 0x51499b
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x70]
mov eax, dword [eax]
cmp ebx, eax
jg 0x514b7a
cmp eax, ebp
jge 0x514b22
cmp eax, edx
jne 0x5149e6
cmp edi, ecx
jge 0x5149c6
mov edi, dword [esp + 0x70]
xor ebx, ebx
push ebx
push edi
mov ecx, esi
call fcn.0050ac40
test eax, eax
je 0x5149a1
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], ebx
mov dword [0x6354e4], ebx
mov dword [0x638f24], ecx
jmp 0x514b7a
mov dword [esp + 0x18], eax
jmp 0x514952
mov eax, dword [esi + 0x10]
sub eax, dword [edi + 4]
cmp dword [0x6354e4], eax
jle 0x514b09
mov edx, dword [esi + 0x14]
mov dword [0x6354e4], eax
mov dword [0x638f24], edx
jmp 0x514b09
cmp eax, edx
jne 0x5149e6
cmp edi, ecx
jne 0x5149e6
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [0x6354e4], eax
mov eax, dword [esi + 0x14]
mov dword [0x638f24], eax
jmp 0x514b7a
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x514a37
cmp edi, dword [esi + 8]
jge 0x514a2e
mov edi, dword [esp + 0x70]
xor ebx, ebx
push ebx
push edi
mov ecx, esi
call fcn.0050ac40
test eax, eax
jne 0x514983
mov eax, dword [esi + 8]
sub eax, dword [edi + 4]
cmp dword [0x6354e4], eax
jle 0x514b09
mov edx, dword [esi + 0x14]
mov dword [0x6354e4], eax
mov dword [0x638f24], edx
jmp 0x514b09
cmp eax, ecx
jne 0x514a37
cmp edi, dword [esi + 8]
je 0x5149ce
mov ebx, dword [esp + 0x70]
xor edi, edi
push edi
push ebx
mov ecx, esi
call fcn.0050ac40
test eax, eax
je 0x514a62
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], edi
mov dword [0x6354e4], edi
mov dword [0x638f24], ecx
jmp 0x514b7a
mov eax, dword [esp + 0x18]
sub eax, dword [ebx + 4]
cmp eax, dword [0x6354e4]
jg 0x514b09
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x28]
inc edx
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x38], edx
call fcn.0050a7c0
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
mov dword [esp + 0x74], 0
call fcn.0050abb0
test eax, eax
jle 0x514af0
mov edi, 1
cmp eax, edi
mov eax, dword [esp + 0x38]
jne 0x514ac6
sub eax, dword [esp + 0x28]
jmp 0x514ad8
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x40]
sub eax, edx
sub ecx, edx
cmp eax, ecx
jl 0x514ad8
mov eax, ecx
cmp dword [0x6354e4], eax
jle 0x514af4
mov edx, dword [esi + 0x14]
mov dword [0x6354e4], eax
mov dword [0x638f24], edx
jmp 0x514af4
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x44]
mov dword [esp + 0x68], 0xffffffff
call fcn.0050a7b0
test edi, edi
je 0x514b7a
push 8
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x514b6e
mov dword [eax], 0
mov dword [eax + 4], esi
jmp 0x514b70
jne 0x514b7a
cmp eax, edx
jne 0x514b30
cmp edi, ecx
je 0x5149ce
cmp eax, dword [esi + 4]
jne 0x514b57
cmp edi, dword [esi + 8]
jne 0x514b57
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], 1
mov dword [0x6354e4], 0
mov dword [0x638f24], ecx
jmp 0x514b7a
mov edx, dword [esp + 0x70]
push 0
push edx
mov ecx, esi
call fcn.0050ac40
test eax, eax
je 0x514b7a
jmp 0x5149ce
xor eax, eax
mov ecx, dword [esp + 0x78]
push eax
call fcn.005144d0
mov ecx, dword [esp + 0x74]
mov edx, dword [ecx + 4]
mov eax, dword [edx]
mov dword [ecx + 4], eax
test eax, eax
jne 0x514900
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret