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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
mov esi, dword [ecx + 8]
xor ebx, ebx
mov ebp, dword [eax + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x18], ebx
push edi
mov edi, dword [ecx]
mov ecx, dword [eax + 0x3c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x28], ecx
test ebp, ebp
je 0x510d9e
mov ebp, dword [ebp]
jmp 0x510da0
xor ebp, ebp
mov eax, dword [edi + 0x38]
lea edx, [edi + 0x2c]
mov cl, byte [edi + 0x13]
dec eax
mov dword [esp + 0x18], eax
dec eax
mov dword [edi + 0x38], eax
test cl, cl
jne 0x510dcb
mov eax, dword [edx]
inc eax
mov dword [edx], eax
inc dword [edx]
mov ecx, dword [edx]
mov dword [esp + 0x20], ecx
xor cl, cl
mov dword [esp + 0x14], eax
jmp 0x510e08
sub cl, 1
movzx eax, cl
mov byte [edi + 0x13], cl
mov eax, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x14], eax
jne 0x510ded
inc dword [edx]
mov ecx, dword [edx]
mov dword [esp + 0x20], ecx
xor cl, cl
jmp 0x510e08
dec cl
movzx eax, cl
mov byte [edi + 0x13], cl
mov eax, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x14], eax
test ebp, ebp
je 0x510eaf
cmp ebp, 1
jne 0x510e55
test cl, cl
jne 0x510e1f
inc dword [edx]
mov ebx, dword [edx]
jmp 0x510e2e
dec cl
movzx eax, cl
mov byte [edi + 0x13], cl
mov ebx, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x24], ebx
test cl, cl
jne 0x510e40
inc dword [edx]
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
jmp 0x510eab
dec cl
movzx eax, cl
mov byte [edi + 0x13], cl
mov eax, dword [edi + eax*4 + 0x98]
mov dword [esp + 0x1c], eax
jmp 0x510eab
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
cmp ebp, ecx
jg 0x510e78
lea ebx, [eax + ebp]
sub ecx, ebp
mov dword [esp + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x1c], ecx
jmp 0x510e89
mov eax, dword [edx]
lea ebx, [eax + 1]
add eax, ebp
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x1c]
mov dword [edx], eax
cmp ebp, ecx
jg 0x510e9a
lea eax, [ebx + ebp]
sub ecx, ebp
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], ecx
jmp 0x510ea7
mov eax, dword [edx]
lea ecx, [eax + 1]
add eax, ebp
mov dword [esp + 0x1c], ecx
mov dword [edx], eax
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x74]
mov edx, dword [edx + 0x30]
cmp dword [esi + 0x78], ecx
jg 0x510ed3
push 0
push eax
push edx
mov edx, 0x86
mov ecx, esi
call fcn.00497f80
add esp, 0xc
jmp 0x510f02
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x14]
mov dword [eax + ecx*4], 0x86
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x30]
mov edx, dword [ebx + 0x30]
call fcn.00510090
add esp, 4
mov ecx, dword [esi + 0x74]
mov edx, dword [ebx + 0x34]
cmp dword [esi + 0x78], ecx
jg 0x510f37
push 0
push edx
push 0
mov edx, 0x4a
mov ecx, esi
call fcn.00497f80
add esp, 0xc
jmp 0x510f66
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0x4a
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [ebx + 0x24]
test ebx, ebx
jne 0x510f16
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x74]
mov edx, dword [edx + 0x58]
cmp dword [esi + 0x78], ecx
jg 0x510f96
mov eax, dword [esp + 0x18]
mov ecx, esi
push edx
dec eax
lea edx, [ebx + 0x19]
push eax
push dword [esp + 0x30]
call fcn.00497f80
add esp, 0xc
jmp 0x510fca
mov ebx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov edi, dword [esp + 0x28]
lea ecx, [ecx + ecx*4]
mov dword [esi + 0x74], eax
dec ebx
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x19
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ebx, dword [esi + 0x74]
mov dword [esp + 0x3c], ebx
cmp dword [esi + 0x78], ebx
jg 0x510ff2
mov edx, dword [esp + 0x20]
mov ecx, esi
push 0
push edx
push dword [esp + 0x30]
mov edx, 0x86
call fcn.00497f80
add esp, 0xc
jmp 0x511025
mov edx, dword [esp + 0x28]
lea eax, [ebx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x86
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x74]
mov edx, dword [eax + 0x5c]
cmp dword [esi + 0x78], ecx
jg 0x511054
push dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov ecx, esi
dec eax
push eax
push edx
mov edx, 0x36
call fcn.00497f80
mov edx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x511088
mov edi, dword [esp + 0x34]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
dec edx
mov dword [eax + ecx*4], 0x36
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esp + 0x2c]
mov al, byte [ecx + 0x14]
cmp al, 0x55
jne 0x5110f0
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x5110b8
push edx
push dword [esp + 0x1c]
mov edx, 0x35
mov ecx, esi
push dword [esp + 0x1c]
call fcn.00497f80
add esp, 0xc
jmp 0x5112e2
mov edx, dword [esp + 0x14]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx*4 + 8], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
jmp 0x5112e2
cmp al, 0x42
je 0x5112e2
mov edx, dword [ecx + 0xc]
xor ebx, ebx
mov dword [esp + 0x30], ebx
test edx, edx
je 0x511119
push ebx
push ebx
mov ecx, edi
call fcn.004e6250
mov ecx, dword [esp + 0x34]
add esp, 8
mov dword [esp + 0x30], eax
cmp byte [ecx + 0x14], 0x5e
jne 0x511177
mov ebx, dword [esi + 0x74]
cmp dword [esi + 0x78], ebx
jg 0x511144
push dword [esp + 0x20]
mov edx, 0x35
mov ecx, esi
push 0
push dword [esp + 0x1c]
call fcn.00497f80
add esp, 0xc
mov ebx, eax
jmp 0x511177
mov edx, dword [esp + 0x14]
lea eax, [ebx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ebx + ebx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x35
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], 0
cmp dword [esp + 0x30], 0
je 0x511260
push dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x3c]
call fcn.00510090
mov ecx, dword [esi + 0x74]
add esp, 4
cmp dword [esi + 0x78], ecx
jg 0x5111b8
push ebp
push dword [esp + 0x28]
mov edx, 0x59
mov ecx, esi
push dword [esp + 0x24]
call fcn.00497f80
add esp, 0xc
jmp 0x5111e7
mov edx, dword [esp + 0x1c]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx*4], 0x59
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], ebp
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [esi]
cmp byte [ecx + 0x57], 0
je 0x511202
push dword [esp + 0x30]
mov edx, 0xfffffff7
call fcn.00498a90
add esp, 4
jmp 0x511218
mov eax, dword [esi + 0x74]
mov edx, dword [esp + 0x30]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], edx
mov eax, dword [esi + 0x74]
lea edx, [eax + 1]
cmp dword [esi + 0x78], eax
jg 0x51123a
push edx
push dword [esp + 0x1c]
mov ecx, esi
push edx
mov edx, 0x10
call fcn.00497f80
add esp, 0xc
jmp 0x5112b4
mov edi, dword [esp + 0x18]
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
mov dword [esi + 0x74], edx
mov dword [eax + ecx*4 + 8], edi
mov edi, dword [esp + 0x34]
mov dword [eax + ecx*4], 0x10
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 0xc], edx
jmp 0x5112ac
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x511281
push 0
push dword [esp + 0x1c]
mov edx, 0xb
mov ecx, esi
push 0
call fcn.00497f80
add esp, 0xc
jmp 0x5112b4
mov edx, dword [esp + 0x18]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
test ebx, ebx
je 0x5112de
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], 0
je 0x5112ca
mov eax, 0x5d4b70
jmp 0x5112db
test ebx, ebx
lea eax, [edx - 1]
cmovns eax, ebx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov dword [eax + 8], edx
mov ebx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov ecx, eax
mov edx, dword [esp + 0x2c]
push dword [eax + 0x14]
push 0
push dword [esp + 0x30]
call fcn.00510170
mov ecx, dword [esi + 0xc]
add esp, 0xc
mov edx, dword [esp + 0x18]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x51131b
push edx
mov edx, esi
call fcn.004987a0
add esp, 4
jmp 0x511324
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + edx*4], eax
mov ecx, dword [esi + 0x74]
cmp dword [esi + 0x78], ecx
jg 0x511344
push 0
push ebx
push dword [esp + 0x30]
mov edx, 5
mov ecx, esi
call fcn.00497f80
add esp, 0xc
jmp 0x511373
mov edx, dword [esp + 0x28]
lea eax, [ecx + 1]
mov dword [esi + 0x74], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [esi + 0x70]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], ebx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi]
lea ecx, [ebx - 1]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], 0
je 0x511388
mov eax, 0x5d4b78
jmp 0x51139b
test ecx, ecx
mov eax, edx
cmovns eax, ebx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
add eax, 0xfffffff4
mov dword [eax], edx
lea ecx, [ebx + 1]
mov eax, dword [esi]
mov edx, dword [esi + 0x74]
cmp byte [eax + 0x57], 0
je 0x5113b2
mov eax, 0x5d4b70
jmp 0x5113c3
test ecx, ecx
lea eax, [edx - 1]
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x70]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], edx
test ecx, ecx
je 0x5113e2
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x5113e2
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x5113fe
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x5113fe
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
test ebp, ebp
je 0x511462
cmp ebp, 1
jne 0x511441
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x511423
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x511423
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x511462
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x511462
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
jmp 0x511462
mov eax, dword [edi + 0x1c]
cmp ebp, eax
jle 0x511462
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x20], eax
mov eax, ebp
mov dword [edi + 0x1c], ebp
cmp ebp, eax
jle 0x511462
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1c], ebp
mov dword [edi + 0x20], eax
mov ecx, dword [esp + 0x38]
mov edx, 1
call fcn.00510a00
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret