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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xa0]
cmp eax, dword [ecx + 8]
jbe 0x509c8d
sub esp, 0x120
mov ebx, dword [esp + 0x12c]
test ebx, ebx
je 0x508eda
mov ebp, dword [esp + 0x138]
test ebp, ebp
je 0x508ec6
mov esi, dword [esp + 0x124]
lea edi, [esi + ebx*4 - 4]
mov eax, esi
mov esi, dword [esp + 0x130]
mov ecx, ebp
lea ebp, [esi + ebp*4 - 4]
cmp ebp, edi
jne 0x508ec2
mov edx, esi
mov esi, dword [esp + 0x13c]
jmp 0x508f11
test ebx, ebx
jmp 0x508eef
test ebx, ebx
mov eax, dword [esp + 0x124]
mov ecx, ebp
mov esi, dword [esp + 0x130]
jmp 0x508eef
mov eax, dword [esp + 0x124]
mov ecx, dword [esp + 0x138]
mov esi, dword [esp + 0x130]
je 0x508f34
mov ebp, dword [esp + 0x144]
test ebp, ebp
je 0x508f22
lea edi, [eax + ebx*4 - 4]
mov edx, esi
mov esi, dword [esp + 0x13c]
lea ebp, [esi + ebp*4 - 4]
cmp ebp, edi
jne 0x508f19
xor ebx, ebx
xor eax, eax
xor ebp, ebp
jmp 0x508f44
mov ebp, dword [esp + 0x128]
jmp 0x508f44
mov edx, esi
mov esi, dword [esp + 0x13c]
mov ebp, dword [esp + 0x128]
jmp 0x508f44
mov edx, esi
mov esi, dword [esp + 0x13c]
mov ebp, dword [esp + 0x128]
mov dword [esp + 0x64], ebp
mov edi, dword [esp + 0x14c]
cmp edi, 1
jne 0x508f81
mov ebp, dword [esp + 0x148]
cmp dword [ebp], 1
jne 0x508f88
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0x160], ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x148]
mov ebp, dword [esp + 0x140]
test ebp, ebp
je 0x509547
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x134]
test ebx, ebx
je 0x509523
cmp ebx, 1
jne 0x50900b
cmp dword [edx], 1
jne 0x50900b
nop
mov ecx, dword [esp + 0x70]
cmp ecx, 1
jge 0x508fe5
lea eax, [0x64ed40]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044a050
mov eax, dword [esp + 0xc]
mov ecx, 1
mov dword [eax], 1
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], 1
mov dword [esp + 0x160], ecx
add esp, 0x120
ret
cmp ebp, 1
jne 0x50916b
cmp dword [esi], 1
jne 0x50916b
test edi, edi
jne 0x5090fe
mov ecx, dword [esp + 0x70]
cmp ebx, ecx
jg 0x509031
mov ebp, ebx
jmp 0x5090a7
cmp ebx, 1
jne 0x509072
lea eax, [0x64ed40]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044a050
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x130]
mov ebp, dword [esp + 0x134]
mov ebx, 1
mov ecx, 1
jmp 0x5090a7
lea eax, [0x64ed40]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x50], eax
mov dword [esp + 8], eax
call fcn.0044a050
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x130]
mov ebp, dword [esp + 0x134]
mov ebx, ebp
mov ecx, dword [esp + 0x50]
cmp ebp, ebx
jl 0x5090ad
mov ebp, ebx
cmp edx, eax
je 0x5090e2
mov dword [esp + 0x60], ebx
mov dword [esp + 0xfc], eax
mov dword [esp + 0x6c], ecx
mov dword [esp], eax
mov dword [esp + 4], edx
shl ebp, 2
mov dword [esp + 8], ebp
call fcn.00463000
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0x6c]
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x160], ecx
add esp, 0x120
ret
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x130]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x148]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x150]
mov dword [esp + 0x20], eax
call fcn.0050d9d0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x160], edx
add esp, 0x120
ret
test edi, edi
je 0x50932b
mov esi, dword [esp + 0x70]
cmp edi, esi
jg 0x509183
cmp ebp, 1
jmp 0x50922e
cmp edi, 1
jne 0x5091dc
lea eax, [0x64ed40]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044a050
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x140]
cmp ecx, 1
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x130]
mov ebx, dword [esp + 0x134]
mov ebp, dword [esp + 0x140]
mov esi, 1
mov edi, 1
jmp 0x50922e
lea eax, [0x64ed40]
mov dword [esp], eax
mov dword [esp + 4], edi
lea ecx, [edi + 4]
mov dword [esp + 0x4c], ecx
mov dword [esp + 8], ecx
call fcn.0044a050
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x140]
cmp ecx, 1
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x130]
mov ebx, dword [esp + 0x134]
mov ebp, dword [esp + 0x140]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x14c]
jle 0x509317
movzx ebp, byte [esp + 0x154]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x50924e
mov ebp, dword [esp + 0x140]
jmp 0x509317
mov edx, dword [esp + 0x148]
mov ebp, dword [edx]
test ebp, 1
jne 0x50928a
mov dword [esp + 0xc8], esi
nop
mov ebp, dword [esp + 0x14c]
mov dword [esp + 0xcc], eax
xor eax, eax
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xcc]
jmp 0x509b21
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov eax, dword [esp + 0x130]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x140]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x148]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x150]
mov dword [esp + 0x2c], eax
call fcn.0050ad40
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x160], edx
add esp, 0x120
ret
mov edi, dword [esp + 0x14c]
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x13c]
jmp 0x509341
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0xec]
mov edi, dword [esp + 0x68]
cmp ebx, edi
jle 0x5093e4
cmp ebx, 1
jne 0x50939c
lea eax, [0x64ed40]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044a050
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x130]
mov ebp, dword [esp + 0x140]
mov esi, dword [esp + 0x13c]
mov ebx, 1
mov edi, 1
jmp 0x5093e4
lea eax, [0x64ed40]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x48], eax
mov dword [esp + 8], eax
call fcn.0044a050
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x130]
mov ebp, dword [esp + 0x140]
mov esi, dword [esp + 0x13c]
mov ebx, dword [esp + 0x134]
mov edi, dword [esp + 0x48]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x134]
cmp edi, ebx
jl 0x5093f5
mov edi, ebx
cmp edx, eax
je 0x509437
mov dword [esp + 0x5c], ebx
mov dword [esp + 0xf8], eax
mov dword [esp], eax
mov dword [esp + 4], edx
shl edi, 2
mov dword [esp + 8], edi
call fcn.00463000
mov eax, dword [esp + 0xf8]
mov ecx, dword [esp + 0x138]
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x140]
mov esi, dword [esp + 0x13c]
mov edi, dword [esi + ebp*4 - 4]
nop
nop
cmp edi, 0x10000
jb 0x509466
mov edx, edi
shr edi, 0x10
mov dword [esp + 0xe4], eax
mov eax, 0x10
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0xe4]
jmp 0x509473
mov edx, edi
xor edi, edi
mov dword [esp + 0x8c], edi
mov edi, edx
cmp edi, 0x100
jb 0x50948a
shr edi, 8
mov esi, dword [esp + 0x8c]
add esi, 8
jmp 0x509491
mov esi, dword [esp + 0x8c]
cmp edi, 0x100
jae 0x509aff
lea ebp, [0x69c3cd]
movzx ebp, byte [edi + ebp]
lea ebp, [esi + ebp - 0x20]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
lea esi, [ebp + 1]
cmp esi, 0x20
mov edi, ebp
sbb ebp, ebp
mov ecx, esi
shl edx, cl
and edx, ebp
lea ebp, [edi - 0x1f]
xchg ebp, ebx
neg ebx
xchg ebp, ebx
mov dword [esp + 0x74], ebp
xor ecx, ecx
mov esi, dword [esp + 0x68]
xor edi, edi
xor esi, esi
mov dword [esp + 0x58], esi
xor ecx, ecx
mov dword [esp + 0xf4], ecx
xor ecx, ecx
mov dword [esp + 0x7c], ecx
xor ecx, ecx
mov dword [esp + 0x80], ecx
xor ecx, ecx
mov dword [esp + 0x100], ecx
xor ecx, ecx
mov dword [esp + 0x88], ecx
xor ecx, ecx
mov dword [esp + 0x84], ecx
xor ecx, ecx
mov dword [esp + 0x104], ecx
mov esi, dword [esp + 0x68]
xor ecx, ecx
jmp 0x5095b4
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x160], eax
add esp, 0x120
ret
nop
cmp ebx, 1
jge 0x509574
lea eax, [0x64ed40]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0044a050
mov eax, dword [esp + 0xc]
mov ebx, 1
mov dword [eax], 1
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], 1
mov dword [esp + 0x160], ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x94]
inc ebp
shl ebx, 1
mov dword [esp + 0x58], esi
mov esi, edx
mov edx, ebx
mov ebx, ecx
mov ecx, ebp
mov ebp, dword [esp + 0x74]
cmp ecx, ebp
jge 0x5097fa
mov dword [esp + 0xc8], esi
mov dword [esp + 0x11c], eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x78], edx
mov ecx, dword [esp + 0xf4]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
call fcn.00507c60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x78]
test ebx, 0x80000000
jne 0x509646
mov ebp, dword [esp + 0x14c]
test ebp, ebp
mov esi, dword [esp + 0xc8]
mov edi, dword [esp + 0x54]
mov esi, dword [esp + 0x11c]
mov dword [esp + 0xf4], esi
mov esi, dword [esp + 0xc8]
jmp 0x5096ed
mov dword [esp + 0x118], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc0], edx
mov ebx, dword [esp + 0x11c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x134]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x138]
mov dword [esp + 0x20], esi
call fcn.00506b90
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14c]
test ebx, ebx
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x14c]
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0xc4]
mov ebp, dword [esp + 0x118]
mov dword [esp + 0xf4], ebp
mov ebp, dword [esp + 0x14c]
je 0x50959a
mov dword [esp + 0xbc], edx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0x114], eax
mov ebx, dword [esp + 0xf4]
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 8], esi
mov ebx, dword [esp + 0x100]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x148]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x150]
mov dword [esp + 0x2c], esi
call fcn.0050db40
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x84]
mov edi, dword [esp + 0x104]
mov dword [esp + 0xf4], edi
mov edi, dword [esp + 0xbc]
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0xb8]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0x114]
mov dword [esp + 0x100], edi
mov dword [esp + 0x104], ebx
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x84]
mov dword [esp + 0x84], ebp
mov ebp, dword [esp + 0x14c]
mov dword [esp + 0xdc], eax
mov eax, esi
mov esi, dword [esp + 0x88]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xdc]
jmp 0x50959a
mov ecx, dword [esp + 0x140]
lea ebp, [ecx - 2]
mov edx, dword [esp + 0x13c]
jmp 0x509815
mov ebp, dword [esp + 0x9c]
dec ebp
test ebp, ebp
jl 0x509844
cmp ecx, ebp
jbe 0x509af8
mov dword [esp + 0x9c], ebp
mov ebp, dword [edx + ebp*4]
mov dword [esp + 0xd4], eax
xor eax, eax
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xd4]
jmp 0x5098b8
mov ecx, ebx
jmp 0x50984a
mov ebx, ebp
test ebx, ebx
jle 0x50985d
lea ebp, [ebx - 1]
cmp ecx, ebp
jbe 0x509886
mov edi, dword [eax + ebx*4 - 4]
test edi, edi
je 0x509848
cmp ebx, esi
ja 0x50987d
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], ebx
mov dword [esp + 0x160], esi
add esp, 0x120
ret
mov ecx, ebx
mov edx, esi
call fcn.00462750
mov eax, ebp
call fcn.00462710
mov ebp, dword [esp + 0x90]
inc ebp
shl ebx, 1
mov dword [esp + 0x90], ebp
mov dword [esp + 0x58], edi
mov ebp, ebx
mov ebx, ecx
mov edi, esi
mov ecx, dword [esp + 0x140]
mov esi, edx
mov edx, dword [esp + 0x13c]
mov dword [esp + 0x78], ebp
mov ebp, dword [esp + 0x90]
cmp ebp, 0x20
jge 0x50980d
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb0], esi
mov dword [esp + 0x110], eax
mov ecx, dword [esp + 0xf4]
mov dword [esp], ecx
mov dword [esp + 4], edi
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
call fcn.00507c60
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x78]
test ebx, 0x80000000
jne 0x509951
mov ebp, dword [esp + 0x14c]
test ebp, ebp
mov esi, dword [esp + 0xb4]
mov edi, dword [esp + 0xb0]
mov esi, dword [esp + 0x110]
mov dword [esp + 0xf4], esi
mov esi, dword [esp + 0xb4]
jmp 0x5099fb
mov dword [esp + 0xac], ecx
mov dword [esp + 0x10c], eax
mov dword [esp + 0xa8], edx
mov ebx, dword [esp + 0x110]
mov dword [esp], ebx
mov ebx, dword [esp + 0xb4]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x130]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x134]
mov dword [esp + 0x1c], ebp
mov esi, dword [esp + 0x138]
mov dword [esp + 0x20], esi
call fcn.00506b90
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x14c]
test ebx, ebx
mov ebx, dword [esp + 0x78]
mov ebp, dword [esp + 0x14c]
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0xa8]
mov ebp, dword [esp + 0x10c]
mov dword [esp + 0xf4], ebp
mov ebp, dword [esp + 0x14c]
je 0x50988d
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x108], eax
mov ebx, dword [esp + 0xf4]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov ebx, dword [esp + 0x100]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x148]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x150]
mov dword [esp + 0x2c], esi
call fcn.0050db40
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x88]
mov edi, dword [esp + 0x104]
mov dword [esp + 0xf4], edi
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x7c], edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x80], edi
mov edi, dword [esp + 0x108]
mov dword [esp + 0x100], edi
mov dword [esp + 0x104], ebx
mov ebx, dword [esp + 0x78]
mov edi, dword [esp + 0x88]
mov dword [esp + 0x88], esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x84], ebp
mov ebp, dword [esp + 0x14c]
jmp 0x50988d
mov eax, ebp
call fcn.00462710
mov eax, edi
mov ecx, 0x100
call fcn.00462720
inc ebx
mov esi, dword [esp + 0xc8]
mov dword [esp + 0x98], ebx
mov ebx, dword [esp + 0x134]
mov ebx, dword [esp + 0x98]
cmp ebp, ebx
jbe 0x509c83
mov esi, dword [edx + ebx*4]
test esi, esi
je 0x509b0b
lea edx, [ebp - 1]
cmp ebx, edx
jne 0x509bef
lea edx, [esi - 1]
test esi, edx
jne 0x509bef
nop
mov edx, esi
xchg esi, ebx
neg ebx
xchg esi, ebx
and edx, esi
imul edx, edx, 0x77cb531
shr edx, 0x1b
lea ebp, [0x8232c0]
movzx edx, byte [edx + ebp]
mov dword [esp], eax
mov dword [esp + 4], edi
mov eax, dword [esp + 0xc8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x130]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x140]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 0x20], eax
shl ebx, 5
lea eax, [ebx + edx]
mov dword [esp + 0x24], eax
call fcn.0050a2b0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x160], edx
add esp, 0x120
ret
mov dword [esp], eax
mov dword [esp + 4], edi
mov eax, dword [esp + 0xc8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x130]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x134]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x140]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x144]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x148]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebp
mov eax, dword [esp + 0x150]
mov dword [esp + 0x2c], eax
call fcn.00509ca0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [esp + 0x158], eax
mov dword [esp + 0x15c], ecx
mov dword [esp + 0x160], edx
add esp, 0x120
ret
mov eax, ebx
mov ecx, ebp
call fcn.00462720
nop
call fcn.00461280
jmp fcn.00508e60