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

Disassembly:
mov ecx, dword [0x78bd58]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 0x9c]
cmp eax, dword [ecx + 8]
jbe 0x502c39
sub esp, 0x11c
mov eax, dword [esp + 0x140]
mov ecx, eax
and eax, 0x40
mov dword [esp + 0xe8], eax
test eax, eax
jne 0x5018a8
mov edx, dword [esp + 0x120]
mov ebx, dword [edx + 8]
mov ebp, dword [edx + 4]
mov esi, dword [esp + 0x13c]
lea edi, [esi + ebp]
mov eax, dword [edx]
cmp ebx, edi
jae 0x501828
mov dword [esp + 0xe4], ebp
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xe4]
mov esi, dword [esp + 0x13c]
mov dword [esp + 0xe4], ebx
mov dword [esp + 0x118], eax
mov dword [esp + 0xe0], edi
lea ecx, [eax + ebp]
mov dword [esp], ecx
mov ecx, dword [esp + 0x138]
mov dword [esp + 4], ecx
mov dword [esp + 8], esi
call fcn.00470810
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe4]
mov dword [ecx + 8], eax
mov eax, dword [0x78be40]
test eax, eax
jne 0x501885
mov eax, dword [esp + 0x118]
jmp 0x501898
call fcn.0046fef0
mov eax, dword [esp + 0x118]
mov dword [edi], eax
mov edx, dword [ecx]
mov dword [edi + 4], edx
mov dword [ecx], eax
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0x140]
test ecx, 7
je 0x5019ad
test ecx, 0x20
je 0x501954
lea edi, [esp + 0x100]
lea esi, [esp + 0x124]
call fcn.004705fe
mov ecx, dword [esp + 0x104]
nop
nop
test ecx, 0x80000000
je 0x50192f
mov edx, dword [esp + 0x100]
mov ebx, edx
shl edx, 1
shl ecx, 1
shr ebx, 0x1f
or ecx, ebx
mov ebx, ecx
shl ecx, 1
shr edx, 0x1f
or edx, ecx
shr ebx, 0x1f
add edx, 0xd7b17f80
mov dword [esp + 0x108], edx
adc ebx, 0xd
mov dword [esp + 0x10c], ebx
and dword [esp + 0x100], 0x3fffffff
mov dword [esp + 0x104], 0
mov dword [esp + 0x110], 0
lea edi, [esp + 0x124]
lea esi, [esp + 0x100]
call fcn.004705fe
mov ecx, dword [esp + 0x140]
test ecx, 1
je 0x5023ab
nop
lea edi, [esp]
lea esi, [esp + 0x124]
call fcn.004705fe
mov byte [esp + 0x14], 1
call fcn.004d2040
nop
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xcc], ecx
mov edx, dword [esp + 0x20]
lea edi, [esp + 0xb4]
mov ebx, eax
xor eax, eax
call fcn.0047011b
mov ecx, 4
mov ebp, 0x13
jmp 0x501e44
test ecx, 0x18
je 0x5019e6
test ecx, 0x10
je 0x5019d3
mov ecx, dword [esp + 0x148]
lea edx, [ecx - 1]
mov ebx, dword [esp + 0x144]
jmp 0x501e05
mov ecx, dword [esp + 0x148]
mov edx, dword [esp + 0x144]
jmp 0x501ac3
test eax, eax
je 0x501abc
mov eax, dword [esp + 0x120]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov ebx, dword [esp + 0x13c]
lea ebp, [edx + ebx]
mov esi, dword [eax]
cmp ecx, ebp
jae 0x501a4a
mov dword [esp + 0xe8], edx
mov dword [esp], esi
mov dword [esp + 4], ebp
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xe8]
mov ebx, dword [esp + 0x13c]
mov dword [esp + 0xe8], ecx
mov dword [esp + 0x118], esi
mov dword [esp + 0xe4], ebp
lea eax, [esi + edx]
mov dword [esp], eax
mov eax, dword [esp + 0x138]
mov dword [esp + 4], eax
mov dword [esp + 8], ebx
call fcn.00470810
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xe8]
mov dword [ecx + 8], eax
mov eax, dword [0x78be40]
test eax, eax
jne 0x501aa7
mov eax, dword [esp + 0x118]
jmp 0x501aba
call fcn.0046fef0
mov eax, dword [esp + 0x118]
mov dword [edi], eax
mov edx, dword [ecx]
mov dword [edi + 4], edx
mov dword [ecx], eax
add esp, 0x11c
ret
mov ebx, dword [esp + 0x120]
mov ebp, dword [ebx + 8]
mov esi, dword [ebx + 4]
lea edi, [ecx + esi]
mov eax, dword [ebx]
cmp ebp, edi
jae 0x501b2d
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xe0], esi
mov dword [esp + 0x114], edx
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], ebp
mov dword [esp + 0xc], ecx
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0x114]
mov esi, dword [esp + 0xe0]
mov dword [esp + 0xe4], ebp
mov dword [esp + 0x118], eax
mov dword [esp + 0xe0], edi
lea ebx, [eax + esi]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
call fcn.00470810
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xe4]
mov dword [ecx + 8], edx
mov ebx, dword [0x78be40]
test ebx, ebx
jne 0x501b83
mov ebx, dword [esp + 0x118]
jmp 0x501b96
call fcn.0046fef0
mov ebx, dword [esp + 0x118]
mov dword [edi], ebx
mov ebp, dword [ecx]
mov dword [edi + 4], ebp
mov dword [ecx], ebx
lea ebp, [eax + 1]
cmp edx, ebp
jae 0x501bfa
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x120]
mov dword [ebx + 8], eax
mov eax, dword [0x78be40]
test eax, eax
je 0x501bed
call fcn.0046fef0
mov dword [edi], ecx
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], ecx
mov ebp, edx
mov ebx, ecx
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], ebp
mov byte [ebp + ebx - 1], 0x3a
nop
lea edi, [esp + 0x28]
xor eax, eax
call fcn.0047011b
mov ecx, dword [esp + 0x14c]
mov eax, 0xffffffff
mov edx, 0x13
jmp 0x501c34
add esi, 0x30
xchg esi, eax
mov byte [esp + ebp + 0x28], al
xchg esi, eax
lea eax, [ebx - 1]
lea ebx, [ebp - 1]
mov ecx, edx
mov edx, ebx
cmp ecx, 0xa
jge 0x501c3e
cmp eax, 1
jle 0x501c66
mov ebx, eax
mov eax, 0xcccccccd
mov ebp, edx
imul ecx
add edx, ecx
sar edx, 3
mov esi, ecx
sar ecx, 0x1f
sub edx, ecx
lea edi, [edx + edx*4]
shl edi, 1
sub esi, edi
cmp ebp, 0x14
jb 0x501c21
jmp 0x501df8
cmp edx, 0x14
jae 0x501dec
lea eax, [ecx + 0x30]
mov byte [esp + edx + 0x28], al
mov eax, dword [esp + 0x120]
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov ebp, ebx
sub ebx, edx
add ebx, 0x14
lea esi, [edx - 0x14]
xchg esi, ebx
neg ebx
xchg esi, ebx
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
mov eax, dword [eax]
and edx, esi
cmp ecx, ebx
jae 0x501cfa
mov dword [esp + 0xe4], ebp
mov dword [esp + 0xe0], edi
mov dword [esp + 0xdc], edx
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0xdc]
mov ebp, dword [esp + 0xe4]
mov edi, dword [esp + 0xe0]
mov dword [esp + 0xe4], ebx
mov dword [esp + 0x118], eax
mov dword [esp + 0xe0], ecx
add ebp, eax
mov dword [esp], ebp
lea edx, [esp + edx + 0x28]
mov dword [esp + 4], edx
mov dword [esp + 8], edi
call fcn.00470810
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xe0]
mov dword [ecx + 8], edx
mov ebx, dword [0x78be40]
test ebx, ebx
jne 0x501d53
mov ebx, dword [esp + 0x118]
jmp 0x501d66
call fcn.0046fef0
mov ebx, dword [esp + 0x118]
mov dword [edi], ebx
mov ebp, dword [ecx]
mov dword [edi + 4], ebp
mov dword [ecx], ebx
lea ebp, [eax + 2]
cmp edx, ebp
jae 0x501daf
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], 2
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov ebx, eax
mov edx, ecx
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x120]
mov word [ebx + eax], 0x203a
mov dword [ecx + 4], ebp
mov dword [ecx + 8], edx
mov eax, dword [0x78be40]
test eax, eax
jne 0x501dd0
mov eax, dword [esp + 0xe8]
test eax, eax
jmp 0x501de5
call fcn.0046fef0
mov dword [edi], ebx
mov eax, dword [ecx]
mov dword [edi + 4], eax
mov eax, dword [esp + 0xe8]
test eax, eax
mov dword [ecx], ebx
jmp 0x5019e8
mov eax, edx
mov ecx, 0x14
call fcn.0046ff60
mov eax, ebp
mov ecx, 0x14
call fcn.0046ff60
dec edx
test edx, edx
jle 0x501e23
lea ebp, [ebx + edx]
cmp byte [ebp], 0x2f
jne 0x501e04
sub ecx, edx
dec ecx
mov ebp, ecx
neg ecx
sar ecx, 0x1f
inc edx
and ecx, edx
add ecx, ebx
jmp 0x501e27
mov ebp, ecx
mov ecx, ebx
mov edx, ecx
mov ecx, ebp
jmp 0x501ac3
add edi, 0x30
xchg edi, eax
mov byte [esp + ebp + 0xb4], al
xchg edi, eax
dec ecx
dec ebp
xor eax, eax
mov ebx, edx
mov edx, esi
cmp ebx, 0xa
jge 0x501e4e
cmp ecx, 1
jle 0x501e74
mov eax, 0xcccccccd
mov esi, edx
imul ebx
add edx, ebx
sar edx, 3
mov edi, ebx
sar ebx, 0x1f
sub edx, ebx
lea ebx, [edx + edx*4]
shl ebx, 1
sub edi, ebx
cmp ebp, 0x14
jb 0x501e30
jmp 0x502c2c
cmp ebp, 0x14
jae 0x502c20
mov dword [esp + 0xd4], edx
lea ecx, [ebx + 0x30]
mov byte [esp + ebp + 0xb4], cl
mov ecx, dword [esp + 0x120]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 4]
mov edi, esi
sub esi, ebp
add esi, 0x14
lea edx, [ebp - 0x14]
neg edx
mov dword [esp + 0xe4], edx
neg edx
sar edx, 0x1f
mov eax, dword [ecx]
and ebp, edx
cmp ebx, esi
jae 0x501f08
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xdc], edi
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov eax, dword [esp + 0xe4]
mov dword [esp + 0xc], eax
lea ecx, [0x5b1ec0]
mov dword [esp + 0x10], ecx
call fcn.004544e0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xe0]
mov edi, dword [esp + 0xdc]
mov dword [esp + 0x118], eax
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
lea ecx, [eax + edi]
mov dword [esp], ecx
lea ecx, [esp + ebp + 0xb4]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xe4]
mov dword [esp + 8], ecx
call fcn.00470810
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xdc]
mov dword [ecx + 8], edx
mov ebx, dword [0x78be40]
test ebx, ebx
jne 0x501f6c
mov ebx, dword [esp + 0x118]
jmp 0x501f7f
call fcn.0046fef0
mov ebx, dword [esp + 0x118]
mov dword [edi], ebx
mov ebp, dword [ecx]
mov dword [edi + 4], ebp
mov dword [ecx], ebx
lea ebp, [eax + 1]
cmp edx, ebp
jae 0x501fe3
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x120]
mov dword [ebx + 8], eax
mov eax, dword [0x78be40]
test eax, eax
je 0x501fd6
call fcn.0046fef0
mov dword [edi], ecx
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], ecx
mov ebp, edx
mov ebx, ecx
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], ebp
mov byte [ebp + ebx - 1], 0x2f
nop
lea edi, [esp + 0xa0]
xor eax, eax
call fcn.0047011b
mov ecx, dword [esp + 0xcc]
mov edx, 2
mov ebx, 0x13
jmp 0x502021
add esi, 0x30
xchg esi, eax
mov byte [esp + ebx + 0xa0], al
xchg esi, eax
dec ebp
dec ebx
xor eax, eax
mov ecx, edx
mov edx, ebp
cmp ecx, 0xa
jge 0x50202b
cmp edx, 1
jle 0x502051
mov eax, 0xcccccccd
mov ebp, edx
imul ecx
add edx, ecx
sar edx, 3
mov esi, ecx
sar ecx, 0x1f
sub edx, ecx
lea edi, [edx + edx*4]
shl edi, 1
sub esi, edi
cmp ebx, 0x14
jb 0x50200d
jmp 0x502c14
cmp ebx, 0x14
jae 0x502c08
add ecx, 0x30
mov byte [esp + ebx + 0xa0], cl
mov ecx, dword [esp + 0x120]
mov edx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
mov esi, ebp
sub ebp, ebx
add ebp, 0x14
lea edi, [ebx - 0x14]
xchg edi, ebx
neg ebx
xchg edi, ebx
mov dword [esp + 0xe4], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
mov eax, dword [ecx]
and ebx, edi
cmp edx, ebp
jae 0x5020e6
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xdc], esi
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov eax, dword [esp + 0xe4]
mov dword [esp + 0xc], eax
lea ecx, [0x5b1ec0]
mov dword [esp + 0x10], ecx
call fcn.004544e0
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xe0]
mov esi, dword [esp + 0xdc]
mov dword [esp + 0xe0], ebp
mov dword [esp + 0x118], eax
mov dword [esp + 0xdc], edx
lea ecx, [eax + esi]
mov dword [esp], ecx
lea ecx, [esp + ebx + 0xa0]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xe4]
mov dword [esp + 8], ecx
call fcn.00470810
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xdc]
mov dword [ecx + 8], edx
mov ebx, dword [0x78be40]
test ebx, ebx
jne 0x50214a
mov ebx, dword [esp + 0x118]
jmp 0x50215d
call fcn.0046fef0
mov ebx, dword [esp + 0x118]
mov dword [edi], ebx
mov ebp, dword [ecx]
mov dword [edi + 4], ebp
mov dword [ecx], ebx
lea ebp, [eax + 1]
cmp edx, ebp
jae 0x5021c1
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x120]
mov dword [ebx + 8], eax
mov eax, dword [0x78be40]
test eax, eax
je 0x5021b4
call fcn.0046fef0
mov dword [edi], ecx
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], ecx
mov ebp, edx
mov ebx, ecx
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], ebp
mov byte [ebp + ebx - 1], 0x2f
nop
lea edi, [esp + 0x8c]
xor eax, eax
call fcn.0047011b
mov edx, dword [esp + 0xd4]
mov eax, 2
mov ecx, 0x13
jmp 0x5021fb
lea ebp, [esi + 0x30]
xchg ebp, eax
mov byte [esp + ecx + 0x8c], al
xchg ebp, eax
lea eax, [ebx - 1]
dec ecx
cmp edx, 0xa
jge 0x502205
cmp eax, 1
jle 0x50222d
mov ebx, eax
mov eax, 0xcccccccd
mov ebp, edx
imul edx
add edx, ebp
sar edx, 3
mov esi, ebp
sar ebp, 0x1f
sub edx, ebp
lea ebp, [edx + edx*4]
shl ebp, 1
sub esi, ebp
cmp ecx, 0x14
jb 0x5021eb
jmp 0x502bfc
cmp ecx, 0x14
jae 0x502bf0
lea eax, [edx + 0x30]
mov byte [esp + ecx + 0x8c], al
mov eax, dword [esp + 0x120]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov ebp, ebx
sub ebx, ecx
add ebx, 0x14
lea esi, [ecx - 0x14]
xchg esi, ebx
neg ebx
xchg esi, ebx
mov edi, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
mov eax, dword [eax]
and ecx, esi
cmp edx, ebx
jae 0x5022c4
mov dword [esp + 0xe4], edi
mov dword [esp + 0xe0], ecx
mov dword [esp + 0xdc], ebp
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xe0]
mov ebp, dword [esp + 0xdc]
mov edi, dword [esp + 0xe4]
mov dword [esp + 0x118], eax
mov dword [esp + 0xe4], ebx
mov dword [esp + 0xe0], edx
add ebp, eax
mov dword [esp], ebp
lea ecx, [esp + ecx + 0x8c]
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
call fcn.00470810
mov eax, dword [esp + 0xe4]
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xe0]
mov dword [ecx + 8], edx
mov ebx, dword [0x78be40]
test ebx, ebx
jne 0x502320
mov ebx, dword [esp + 0x118]
jmp 0x502333
call fcn.0046fef0
mov ebx, dword [esp + 0x118]
mov dword [edi], ebx
mov ebp, dword [ecx]
mov dword [edi + 4], ebp
mov dword [ecx], ebx
inc eax
cmp edx, eax
jae 0x502395
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x120]
mov dword [ebx + 8], eax
mov eax, dword [0x78be40]
test eax, eax
je 0x502388
call fcn.0046fef0
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov eax, edx
mov ebx, ecx
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov byte [eax + ebx - 1], 0x20
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0x140]
test ecx, 6
je 0x5019ad
lea edi, [esp]
lea esi, [esp + 0x124]
call fcn.004705fe
call fcn.004d0420
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0xd0], ecx
mov edx, dword [esp + 0x1c]
nop
lea edi, [esp + 0x78]
mov ebx, eax
xor eax, eax
call fcn.0047011b
mov ecx, 2
mov ebp, 0x13
jmp 0x502409
add edi, 0x30
xchg edi, eax
mov byte [esp + ebp + 0x78], al
xchg edi, eax
dec ecx
dec ebp
xor eax, eax
mov ebx, edx
mov edx, esi
cmp ebx, 0xa
jge 0x502413
cmp ecx, 1
jle 0x502439
mov eax, 0xcccccccd
mov esi, edx
imul ebx
add edx, ebx
sar edx, 3
mov edi, ebx
sar ebx, 0x1f
sub edx, ebx
lea ebx, [edx + edx*4]
shl ebx, 1
sub edi, ebx
cmp ebp, 0x14
jb 0x5023f8
jmp 0x502be4
cmp ebp, 0x14
jae 0x502bd8
mov dword [esp + 0xc8], edx
lea ecx, [ebx + 0x30]
mov byte [esp + ebp + 0x78], cl
mov ecx, dword [esp + 0x120]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 4]
mov edi, esi
sub esi, ebp
add esi, 0x14
lea edx, [ebp - 0x14]
neg edx
mov dword [esp + 0xe4], edx
neg edx
sar edx, 0x1f
mov eax, dword [ecx]
and ebp, edx
cmp ebx, esi
jae 0x5024ca
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xdc], edi
mov dword [esp], eax
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov eax, dword [esp + 0xe4]
mov dword [esp + 0xc], eax
lea ecx, [0x5b1ec0]
mov dword [esp + 0x10], ecx
call fcn.004544e0
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0xe0]
mov edi, dword [esp + 0xdc]
mov dword [esp + 0xe0], esi
mov dword [esp + 0x118], eax
mov dword [esp + 0xdc], ebx
lea ecx, [eax + edi]
mov dword [esp], ecx
lea ecx, [esp + ebp + 0x78]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xe4]
mov dword [esp + 8], ecx
call fcn.00470810
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xdc]
mov dword [ecx + 8], edx
mov ebx, dword [0x78be40]
test ebx, ebx
jne 0x50252b
mov ebx, dword [esp + 0x118]
jmp 0x50253e
call fcn.0046fef0
mov ebx, dword [esp + 0x118]
mov dword [edi], ebx
mov ebp, dword [ecx]
mov dword [edi + 4], ebp
mov dword [ecx], ebx
lea ebp, [eax + 1]
cmp edx, ebp
jae 0x5025a2
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x120]
mov dword [ebx + 8], eax
mov eax, dword [0x78be40]
test eax, eax
je 0x502595
call fcn.0046fef0
mov dword [edi], ecx
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], ecx
mov ebp, edx
mov ebx, ecx
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], ebp
mov byte [ebp + ebx - 1], 0x3a
nop
lea edi, [esp + 0x64]
xor eax, eax
call fcn.0047011b
mov ecx, dword [esp + 0xd0]
mov edx, 2
mov ebx, 0x13
jmp 0x5025da
add esi, 0x30
xchg esi, eax
mov byte [esp + ebx + 0x64], al
xchg esi, eax
dec ebp
dec ebx
xor eax, eax
mov ecx, edx
mov edx, ebp
cmp ecx, 0xa
jge 0x5025e4
cmp edx, 1
jle 0x50260a
mov eax, 0xcccccccd
mov ebp, edx
imul ecx
add edx, ecx
sar edx, 3
mov esi, ecx
sar ecx, 0x1f
sub edx, ecx
lea edi, [edx + edx*4]
shl edi, 1
sub esi, edi
cmp ebx, 0x14
jb 0x5025c9
jmp 0x502bcc
cmp ebx, 0x14
jae 0x502bc0
add ecx, 0x30
mov byte [esp + ebx + 0x64], cl
mov ecx, dword [esp + 0x120]
mov edx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
mov esi, ebp
sub ebp, ebx
add ebp, 0x14
lea edi, [ebx - 0x14]
xchg edi, ebx
neg ebx
xchg edi, ebx
mov dword [esp + 0xe4], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
mov eax, dword [ecx]
and ebx, edi
cmp edx, ebp
jae 0x50269c
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xdc], esi
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov eax, dword [esp + 0xe4]
mov dword [esp + 0xc], eax
lea ecx, [0x5b1ec0]
mov dword [esp + 0x10], ecx
call fcn.004544e0
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xe0]
mov esi, dword [esp + 0xdc]
mov dword [esp + 0x118], eax
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xdc], edx
lea ecx, [eax + esi]
mov dword [esp], ecx
lea ecx, [esp + ebx + 0x64]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xe4]
mov dword [esp + 8], ecx
call fcn.00470810
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xdc]
mov dword [ecx + 8], edx
mov ebx, dword [0x78be40]
test ebx, ebx
jne 0x5026fd
mov ebx, dword [esp + 0x118]
jmp 0x502710
call fcn.0046fef0
mov ebx, dword [esp + 0x118]
mov dword [edi], ebx
mov ebp, dword [ecx]
mov dword [edi + 4], ebp
mov dword [ecx], ebx
lea ebp, [eax + 1]
cmp edx, ebp
jae 0x502774
mov dword [esp], ebx
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x120]
mov dword [ebx + 8], eax
mov eax, dword [0x78be40]
test eax, eax
je 0x502767
call fcn.0046fef0
mov dword [edi], ecx
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], ecx
mov ebp, edx
mov ebx, ecx
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], ebp
mov byte [ebp + ebx - 1], 0x3a
nop
lea edi, [esp + 0x50]
xor eax, eax
call fcn.0047011b
mov edx, dword [esp + 0xc8]
mov ecx, 2
mov ebx, 0x13
jmp 0x5027a8
lea ebp, [esi + 0x30]
xchg ebp, eax
mov byte [esp + ebx + 0x50], al
xchg ebp, eax
dec ecx
dec ebx
xor eax, eax
cmp edx, 0xa
jge 0x5027b2
cmp ecx, 1
jle 0x5027d8
mov eax, 0xcccccccd
mov ebp, edx
imul edx
add edx, ebp
sar edx, 3
mov esi, ebp
sar ebp, 0x1f
sub edx, ebp
lea ebp, [edx + edx*4]
shl ebp, 1
sub esi, ebp
cmp ebx, 0x14
jb 0x50279b
jmp 0x502bb4
cmp ebx, 0x14
jae 0x502ba8
lea ecx, [edx + 0x30]
mov byte [esp + ebx + 0x50], cl
mov ecx, dword [esp + 0x120]
mov edx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
mov esi, ebp
sub ebp, ebx
add ebp, 0x14
lea edi, [ebx - 0x14]
xchg edi, ebx
neg ebx
xchg edi, ebx
mov dword [esp + 0xe4], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
mov eax, dword [ecx]
and ebx, edi
cmp edx, ebp
jae 0x50286a
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ebx
mov dword [esp], eax
mov dword [esp + 4], ebp
mov dword [esp + 8], edx
mov eax, dword [esp + 0xe4]
mov dword [esp + 0xc], eax
lea ecx, [0x5b1ec0]
mov dword [esp + 0x10], ecx
call fcn.004544e0
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xdc]
mov esi, dword [esp + 0xe0]
mov dword [esp + 0xe0], ebp
mov dword [esp + 0xdc], edx
mov dword [esp + 0x118], eax
lea ecx, [eax + esi]
mov dword [esp], ecx
lea ecx, [esp + ebx + 0x50]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0xe4]
mov dword [esp + 8], ecx
call fcn.00470810
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov edx, dword [esp + 0xdc]
mov dword [ecx + 8], edx
mov ebx, dword [0x78be40]
test ebx, ebx
jne 0x5028cb
mov ebx, dword [esp + 0x118]
jmp 0x5028de
call fcn.0046fef0
mov ebx, dword [esp + 0x118]
mov dword [edi], ebx
mov ebp, dword [ecx]
mov dword [edi + 4], ebp
mov dword [ecx], ebx
mov ebp, dword [esp + 0x140]
test ebp, 4
je 0x5029b9
inc eax
cmp edx, eax
jae 0x50295a
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp + 0xc], 1
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x120]
mov dword [ebx + 8], eax
mov eax, dword [0x78be40]
test eax, eax
je 0x502946
call fcn.0046fef0
mov dword [edi], ecx
mov ebp, dword [ebx]
mov dword [edi + 4], ebp
mov dword [ebx], ecx
mov ebp, dword [esp + 0x140]
mov eax, edx
mov ebx, ecx
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov byte [eax + ebx - 1], 0x2e
lea edi, [esp + 0xec]
lea esi, [esp + 0x124]
call fcn.004705fe
mov eax, dword [esp + 0xec]
and eax, 0x3fffffff
mov dword [esp + 0xd8], eax
mov ecx, 0x4189374c
imul ecx
sar edx, 8
mov ecx, dword [esp + 0xd8]
sar ecx, 0x1f
sub edx, ecx
nop
lea edi, [esp + 0x3c]
xor eax, eax
call fcn.0047011b
mov eax, 6
mov ecx, 0x13
jmp 0x502a49
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
inc edx
mov ebx, dword [ecx]
cmp eax, edx
jae 0x502a26
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
lea eax, [0x5b1ec0]
mov dword [esp + 0x10], eax
call fcn.004544e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x120]
mov dword [ebx + 8], eax
mov eax, dword [0x78be40]
test eax, eax
je 0x502a14
call fcn.0046fef0
mov dword [edi], ecx
mov eax, dword [ebx]
mov dword [edi + 4], eax
mov dword [ebx], ecx
mov ebp, dword [esp + 0x140]
mov ebx, ecx
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], edx
mov byte [edx + ebx - 1], 0x20
mov eax, dword [esp + 0xe8]
mov ecx, ebp
jmp 0x5019ad
lea esi, [edi + 0x30]
xchg esi, eax
mov byte [esp + ecx + 0x3c], al
xchg esi, eax
lea eax, [ebx - 1]
dec ecx
cmp edx, 0xa
jge 0x502a53
cmp eax, 1
jle 0x502a7b
mov ebx, eax
mov eax, 0xcccccccd
mov esi, edx
imul edx
add edx, esi
sar edx, 3
mov edi, esi
sar esi, 0x1f
sub edx, esi
lea esi, [edx + edx*4]
shl esi, 1
sub edi, esi
cmp ecx, 0x14
jb 0x502a3c
jmp 0x502b9c
cmp ecx, 0x14
jae 0x502b90
lea eax, [edx + 0x30]
mov byte [esp + ecx + 0x3c], al
mov eax, dword [esp + 0x120]
mov edx, dword [eax + 8]
mov ebx, dword [eax + 4]
mov esi, ebx
sub ebx, ecx
add ebx, 0x14
lea edi, [ecx - 0x14]
xchg edi, ebx
neg ebx
xchg edi, ebx
mov dword [esp + 0xe4], edi
xchg edi, ebx
neg ebx
xchg edi, ebx
sar edi, 0x1f
mov ebp, dword [eax]
and ecx, edi
cmp edx, ebx
jae 0x502b0d
mov dword [esp + 0xe0], esi
mov dword [esp + 0xdc], ecx
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov dword [esp + 8], edx
mov eax, dword [esp + 0xe4]
mov dword [esp + 0xc], eax
lea ecx, [0x5b1ec0]
mov dword [esp + 0x10], ecx
call fcn.004544e0
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xdc]
mov esi, dword [esp + 0xe0]
mov dword [esp + 0x118], ebp
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xdc], edx
lea eax, [ebp + esi]
mov dword [esp], eax
lea eax, [esp + ecx + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 8], eax
call fcn.00470810
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0x120]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0xdc]
mov dword [ecx + 8], eax
mov eax, dword [0x78be40]
test eax, eax
jne 0x502b6f
mov eax, dword [esp + 0x118]
jmp 0x502b82
call fcn.0046fef0
mov eax, dword [esp + 0x118]
mov dword [edi], eax
mov edx, dword [ecx]
mov dword [edi + 4], edx
mov dword [ecx], eax
mov ebp, dword [esp + 0x140]
jmp 0x5029b9
mov eax, ecx
mov ecx, 0x14
call fcn.0046ff60
mov eax, ecx
mov ecx, 0x14
call fcn.0046ff60
mov eax, ebx
mov ecx, 0x14
call fcn.0046ff60
mov eax, ebx
mov ecx, 0x14
call fcn.0046ff60
mov eax, ebx
mov ecx, 0x14
call fcn.0046ff60
mov eax, ebx
mov ecx, 0x14
call fcn.0046ff60
mov eax, ebp
mov ecx, 0x14
call fcn.0046ff60
mov eax, ebp
mov ecx, 0x14
call fcn.0046ff60
mov eax, ecx
mov ecx, 0x14
call fcn.0046ff60
mov eax, ecx
mov ecx, 0x14
call fcn.0046ff60
mov eax, ebx
mov ecx, 0x14
call fcn.0046ff60
mov eax, ebx
mov ecx, 0x14
call fcn.0046ff60
mov eax, ebp
mov ecx, 0x14
call fcn.0046ff60
mov eax, ebp
mov ecx, 0x14
call fcn.0046ff60
nop
call fcn.0046eae0
jmp fcn.00501790