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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf4d5
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6300f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebx]
or dword [esi + 0x84], 1
cmp dword [esi + 8], 0x638490
jne 0x5148f4
push 0x18
call fcn.005708b1
add esp, 4
test eax, eax
je 0x5148ef
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x5148e8
mov ecx, dword [eax]
mov byte [ecx], 0
jmp 0x5148f1
mov ecx, eax
mov byte [ecx], 0
jmp 0x5148f1
xor eax, eax
mov dword [esi + 8], eax
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push 0
push edi
call fcn.00411b75
mov edi, dword [ebx + 4]
cmp dword [edi + 0x10], 0
je 0x51495c
or dword [esi + 0x84], 2
cmp dword [esi + 0xc], 0x638490
jne 0x51494f
push 0x18
call fcn.005708b1
add esp, 4
test eax, eax
je 0x51494a
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 0x10
jb 0x514943
mov ecx, dword [eax]
mov byte [ecx], 0
jmp 0x51494c
mov ecx, eax
mov byte [ecx], 0
jmp 0x51494c
xor eax, eax
mov dword [esi + 0xc], eax
mov ecx, dword [esi + 0xc]
push 0xffffffffffffffff
push 0
push edi
call fcn.00411b75
xor ecx, ecx
mov dword [ebp - 0x10], ecx
cmp dword [ebx + 0xc], ecx
jle 0x5149ce
mov eax, dword [ebx + 0x10]
mov edx, dword [esi + 0x18]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esi + 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp ecx, edx
jge 0x51498f
mov eax, dword [esi + 0x10]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x14], eax
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x14], eax
jmp 0x5149b6
mov eax, dword [esi + 0x1c]
cmp edx, eax
jne 0x5149a0
inc eax
lea ecx, [esi + 0x10]
push eax
call fcn.00507c60
inc dword [esi + 0x18]
call fcn.00507d30
mov edx, dword [esi + 0x14]
mov ecx, eax
mov eax, dword [esi + 0x10]
mov dword [eax + edx*4], ecx
inc dword [esi + 0x14]
push 0xffffffffffffffff
push 0
push dword [ebp - 0x18]
call fcn.00411b75
mov ecx, dword [ebp - 0x10]
inc ecx
mov dword [ebp - 0x10], ecx
cmp ecx, dword [ebx + 0xc]
jl 0x514966
xor edi, edi
cmp dword [ebx + 0x14], edi
jle 0x514a7f
nop dword [eax]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x28]
cmp dword [esi + 0x24], eax
jne 0x514a66
lea edx, [eax + 1]
mov ecx, eax
mov dword [ebp - 0x18], edx
cmp ecx, edx
jge 0x514a66
mov eax, dword [esi + 0x20]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ecx + ecx]
cmp eax, edx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov edx, 4
lea ecx, [ebp - 0x18]
cmovge ecx, eax
mov eax, 0x5cf7f4
cmp dword [ecx], 4
cmovg eax, ecx
xor ecx, ecx
mov eax, dword [eax]
mov dword [esi + 0x28], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005708f2
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x20], edx
test eax, eax
je 0x514a66
mov ecx, dword [esi + 0x24]
shl ecx, 2
push ecx
push eax
push edx
call fcn.00588a40
mov eax, dword [ebp - 0x10]
push eax
call fcn.005708e4
add esp, 0x10
mov ecx, dword [esi + 0x24]
inc edi
mov eax, dword [esi + 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [eax + ecx*4], edx
inc dword [esi + 0x24]
cmp edi, dword [ebx + 0x14]
jl 0x5149e0
xor edi, edi
cmp dword [ebx + 0x1c], edi
jle 0x514b2f
nop word [eax + eax]
mov eax, dword [ebx + 0x20]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x34]
cmp dword [esi + 0x30], eax
jne 0x514b16
lea edx, [eax + 1]
mov ecx, eax
mov dword [ebp - 0x1c], edx
cmp ecx, edx
jge 0x514b16
mov eax, dword [esi + 0x2c]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ecx + ecx]
cmp eax, edx
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov edx, 4
lea ecx, [ebp - 0x1c]
cmovge ecx, eax
mov eax, 0x5cf7f4
cmp dword [ecx], 4
cmovg eax, ecx
xor ecx, ecx
mov eax, dword [eax]
mov dword [esi + 0x34], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005708f2
mov edx, eax
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x2c], edx
test eax, eax
je 0x514b16
mov ecx, dword [esi + 0x30]
shl ecx, 2
push ecx
push eax
push edx
call fcn.00588a40
mov eax, dword [ebp - 0x10]
push eax
call fcn.005708e4
add esp, 0x10
mov ecx, dword [esi + 0x30]
inc edi
mov eax, dword [esi + 0x2c]
mov edx, dword [ebp - 0x14]
mov dword [eax + ecx*4], edx
inc dword [esi + 0x30]
cmp edi, dword [ebx + 0x1c]
jl 0x514a90
cmp dword [ebx + 0x24], 0
mov dword [ebp - 0x10], 0
jle 0x514bc5
lea edi, [esi + 0x38]
xor esi, esi
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
cmp ecx, eax
jge 0x514b5c
mov eax, dword [edi]
mov edx, dword [eax + ecx*4]
lea eax, [ecx + 1]
mov dword [edi + 4], eax
jmp 0x514ba8
mov ecx, dword [edi + 0xc]
cmp eax, ecx
jne 0x514b6e
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.00507c60
inc dword [edi + 8]
push 0x68
call fcn.005708b1
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x514b94
mov ecx, eax
call fcn.0053edf0
mov edx, eax
jmp 0x514b96
xor edx, edx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + ecx*4], edx
inc dword [edi + 4]
mov ecx, dword [ebx + 0x28]
push edx
add ecx, esi
call fcn.00510830
mov edx, dword [ebp - 0x10]
add esi, 0x40
inc edx
mov dword [ebp - 0x10], edx
cmp edx, dword [ebx + 0x24]
jl 0x514b45
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x2c], 0
mov dword [ebp - 0x10], 0
jle 0x514c60
lea edi, [esi + 0x48]
xor esi, esi
nop dword [eax + eax]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
cmp ecx, eax
jge 0x514bf7
mov eax, dword [edi]
mov edx, dword [eax + ecx*4]
lea eax, [ecx + 1]
mov dword [edi + 4], eax
jmp 0x514c43
mov ecx, dword [edi + 0xc]
cmp eax, ecx
jne 0x514c09
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.00507c60
inc dword [edi + 8]
push 0x28
call fcn.005708b1
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x514c2f
mov ecx, eax
call fcn.00541570
mov edx, eax
jmp 0x514c31
xor edx, edx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + ecx*4], edx
inc dword [edi + 4]
mov ecx, dword [ebx + 0x30]
push edx
add ecx, esi
call fcn.00512c30
mov edx, dword [ebp - 0x10]
add esi, 0x20
inc edx
mov dword [ebp - 0x10], edx
cmp edx, dword [ebx + 0x2c]
jl 0x514be0
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x34], 0
mov dword [ebp - 0x10], 0
jle 0x514cf6
lea edi, [esi + 0x58]
xor esi, esi
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
cmp ecx, eax
jge 0x514c8d
mov eax, dword [edi]
mov edx, dword [eax + ecx*4]
lea eax, [ecx + 1]
mov dword [edi + 4], eax
jmp 0x514cd9
mov ecx, dword [edi + 0xc]
cmp eax, ecx
jne 0x514c9f
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.00507c60
inc dword [edi + 8]
push 0x28
call fcn.005708b1
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 2
test eax, eax
je 0x514cc5
mov ecx, eax
call fcn.00542d90
mov edx, eax
jmp 0x514cc7
xor edx, edx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + ecx*4], edx
inc dword [edi + 4]
mov ecx, dword [ebx + 0x38]
push edx
add ecx, esi
call fcn.005139e0
mov edx, dword [ebp - 0x10]
add esi, 0x18
inc edx
mov dword [ebp - 0x10], edx
cmp edx, dword [ebx + 0x34]
jl 0x514c76
mov esi, dword [ebp + 8]
cmp dword [ebx + 0x3c], 0
mov dword [ebp - 0x10], 0
jle 0x514d90
lea edi, [esi + 0x68]
xor esi, esi
nop dword [eax]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
cmp ecx, eax
jge 0x514d27
mov eax, dword [edi]
mov edx, dword [eax + ecx*4]
lea eax, [ecx + 1]
mov dword [edi + 4], eax
jmp 0x514d73
mov ecx, dword [edi + 0xc]
cmp eax, ecx
jne 0x514d39
lea eax, [ecx + 1]
mov ecx, edi
push eax
call fcn.00507c60
inc dword [edi + 8]
push 0x30
call fcn.005708b1
add esp, 4
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x514d5f
mov ecx, eax
call fcn.005403a0
mov edx, eax
jmp 0x514d61
xor edx, edx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 4], 0xffffffff
mov dword [eax + ecx*4], edx
inc dword [edi + 4]
mov ecx, dword [ebx + 0x40]
push edx
add ecx, esi
call fcn.00511d80
mov edx, dword [ebp - 0x10]
add esi, 0x48
inc edx
mov dword [ebp - 0x10], edx
cmp edx, dword [ebx + 0x3c]
jl 0x514d10
mov esi, dword [ebp + 8]
mov edi, dword [ebx + 0x44]
call fcn.00544a30
cmp edi, eax
je 0x514de5
mov edi, dword [ebx + 0x44]
or dword [esi + 0x84], 0x200
cmp dword [esi + 0x78], 0
jne 0x514ddc
push 0x40
call fcn.005708b1
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 4], 4
test eax, eax
je 0x514dd0
mov ecx, eax
call fcn.005447f0
jmp 0x514dd2
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x78], eax
mov ecx, dword [esi + 0x78]
push edi
call fcn.00544c80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4