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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0xf4]
cmp eax, dword [ecx + 8]
jbe 0x505b8d
sub esp, 0x174
mov edx, dword [esp + 0x188]
mov ecx, dword [esp + 0x1a0]
cmp edx, ecx
jg 0x504e17
mov ecx, edx
mov eax, dword [esp + 0x184]
mov edx, dword [esp + 0x18c]
jmp 0x504e8b
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x184]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x18c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x19c]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1a4]
mov dword [esp + 0x2c], edx
call fcn.00507910
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x1a0]
cmp ebx, ecx
jle 0x504ebf
lea edx, [0x62ec80]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
call fcn.00447430
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1a0]
mov ecx, ebx
mov edx, ecx
test ebx, ebx
jbe 0x505b83
mov dword [esp + 0x8c], edx
mov ebp, dword [esp + 0x19c]
mov ebp, dword [ebp]
lea esi, [ebp - 2]
xchg esi, ebx
neg ebx
xchg esi, ebx
dec ebp
mov edi, 1
jmp 0x504efb
shl edi, 1
imul ebp, ebp
lea edx, [ebp + 1]
imul esi, edx
mov edx, dword [esp + 0x8c]
cmp edi, 0x20
jl 0x504ee9
mov dword [esp + 0x88], ecx
mov dword [esp + 0xb0], eax
mov dword [esp + 0x64], esi
nop
nop
lea eax, [0x62ec80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447580
mov eax, dword [esp + 0xc]
mov dword [esp + 0xac], eax
mov dword [eax], 1
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
mov ecx, dword [esp + 0x1a0]
shl ecx, 6
mov dword [esp + 0x18], ecx
call fcn.00503110
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x5c], edx
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov ebx, dword [esp + 0xac]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x19c]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x1a0]
mov dword [esp + 0x28], ebx
mov ebp, dword [esp + 0x1a4]
mov dword [esp + 0x2c], ebp
call fcn.00507910
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x1a0]
cmp ebx, eax
jle 0x505108
mov edx, dword [esp + 0x5c]
cmp ebx, edx
jg 0x50502d
mov ebp, ebx
mov esi, dword [esp + 0x9c]
jmp 0x5050ba
mov dword [esp + 0xa0], ecx
mov dword [esp + 0x74], eax
cmp ebx, 1
jne 0x50507f
lea eax, [0x62ec80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447580
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x1a0]
mov esi, eax
mov ebx, 1
mov edx, 1
mov eax, dword [esp + 0x74]
jmp 0x5050ba
lea eax, [0x62ec80]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea ecx, [ebx + 4]
mov dword [esp + 0x50], ecx
mov dword [esp + 8], ecx
call fcn.00447580
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xa0]
mov ebp, dword [esp + 0x1a0]
mov esi, eax
mov ebx, ebp
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x74]
cmp ebx, eax
jg 0x5050c0
mov eax, ebx
cmp esi, ecx
je 0x505102
mov dword [esp + 0xa8], esi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x78], edx
mov dword [esp], esi
mov dword [esp + 4], ecx
shl eax, 2
mov dword [esp + 8], eax
call fcn.0045f0c0
mov edx, dword [esp + 0x78]
mov ebx, dword [esp + 0x84]
mov ebp, dword [esp + 0x1a0]
mov esi, dword [esp + 0xa8]
mov eax, edx
mov ecx, esi
jmp 0x505119
mov ebp, ebx
mov ebx, eax
mov esi, ecx
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x9c]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x78], edx
mov dword [esp + 0x74], ebx
mov dword [esp + 0xa0], esi
lea edi, [0x62ec80]
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 8], ebp
call fcn.00447580
mov eax, dword [esp + 0xc]
mov dword [esp + 0xac], eax
mov dword [eax], 1
lea edi, [esp + 0xb4]
xor eax, eax
call fcn.0045e990
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [esp + 0xac]
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0xa0]
mov dword [esp + 0x18], edx
mov ebx, dword [esp + 0x74]
mov dword [esp + 0x1c], ebx
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x20], ebp
mov esi, dword [esp + 0x19c]
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ecx
mov edi, dword [esp + 0x1a4]
mov dword [esp + 0x2c], edi
mov eax, dword [esp + 0x64]
neg eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
call fcn.005009e0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xc8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x19c]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1a4]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
call fcn.005009e0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], edx
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x1a4]
mov ebx, dword [esp + 0x19c]
mov ebp, 2
jmp 0x5053c5
mov dword [esp + 0x8c], esi
mov ebp, dword [esp + esi*4 + 0xac]
mov ecx, dword [esp + esi*4 + 0xb0]
mov esi, dword [esp + esi*4 + 0xa8]
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0xc4]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xc8]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x19c]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1a4]
mov dword [esp + 0x2c], edx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ecx
call fcn.005009e0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x8c]
mov dword [esp + ebx*4 + 0xb4], eax
mov dword [esp + ebx*4 + 0xb8], ecx
mov dword [esp + ebx*4 + 0xbc], edx
mov eax, dword [esp + 0x70]
lea ebp, [eax + 1]
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x1a4]
mov ebx, dword [esp + 0x19c]
cmp ebp, 0x10
jge 0x5053fc
jae 0x505b77
mov dword [esp + 0x70], ebp
lea esi, [ebp + ebp*2]
mov edi, dword [esp + esi*4 + 0xb4]
mov edx, dword [esp + esi*4 + 0xb8]
mov ebx, dword [esp + esi*4 + 0xbc]
dec ebp
cmp ebp, 0x10
jb 0x5052db
jmp 0x505b6b
mov ebp, dword [esp + 0x180]
cmp ebp, eax
jl 0x505415
mov esi, eax
mov edi, dword [esp + 0x178]
jmp 0x5054a5
cmp eax, 1
jne 0x505463
lea eax, [0x62ec80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447580
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x1a4]
mov ebx, dword [esp + 0x19c]
mov esi, dword [esp + 0x1a0]
mov edi, eax
mov ebp, 1
mov eax, 1
jmp 0x5054a5
lea ecx, [0x62ec80]
mov dword [esp], ecx
mov dword [esp + 4], eax
lea edx, [eax + 4]
mov dword [esp + 0x4c], edx
mov dword [esp + 8], edx
call fcn.00447580
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x1a4]
mov ebx, dword [esp + 0x19c]
mov esi, dword [esp + 0x1a0]
mov edi, eax
mov ebp, dword [esp + 0x4c]
mov eax, esi
mov edx, dword [esp + 0xb4]
mov ebx, dword [esp + 0xb8]
cmp eax, ebx
jg 0x5054b9
mov ebx, eax
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], eax
mov dword [esp + 0x98], edi
cmp edi, edx
je 0x5054f9
mov dword [esp], edi
mov dword [esp + 4], edx
shl ebx, 2
mov dword [esp + 8], ebx
call fcn.0045f0c0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x4c]
mov esi, dword [esp + 0x1a0]
mov edi, dword [esp + 0x98]
mov edx, dword [esp + 0x5c]
cmp esi, edx
jg 0x505508
mov ebx, esi
jmp 0x5055a4
cmp esi, 1
jne 0x50555c
lea eax, [0x62ec80]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00447580
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x1a0]
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x98]
mov edx, 1
mov esi, 1
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x64]
jmp 0x5055a4
lea eax, [0x62ec80]
mov dword [esp], eax
mov dword [esp + 4], esi
lea eax, [esi + 4]
mov dword [esp + 0x54], eax
mov dword [esp + 8], eax
call fcn.00447580
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x1a0]
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x98]
mov edx, dword [esp + 0x54]
mov esi, ebx
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x64]
mov ebx, dword [esp + 0x194]
dec ebx
mov dword [esp + 0x6c], ebx
jmp 0x5055c4
mov edx, dword [esp + 0x8c]
lea ebx, [edx - 1]
mov edx, dword [esp + 0x6c]
mov edx, dword [esp + 0x5c]
test ebx, ebx
jl 0x505605
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x194]
cmp edx, ebx
jbe 0x505b62
mov dword [esp + 0x8c], ebx
mov edx, dword [esp + 0x190]
mov ebx, dword [edx + ebx*4]
mov dword [esp + 0x90], eax
xor eax, eax
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x90]
jmp 0x505927
mov ebx, dword [esp + 0x9c]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0xac]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1a0]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x19c]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
mov ebx, dword [esp + 0x1a4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
call fcn.005009e0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x5c], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x19c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x1a0]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x1a4]
mov dword [esp + 0x14], esi
call fcn.00500660
mov eax, dword [esp + 0x18]
test eax, eax
jge 0x5056cc
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x9c]
jmp 0x5057f9
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x5c]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x19c]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x1a0]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x1a4]
mov dword [esp + 0x20], edx
call fcn.00500360
mov eax, dword [esp + 0x24]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x5c], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x19c]
mov dword [esp + 0xc], ebx
mov ebp, dword [esp + 0x1a0]
mov dword [esp + 0x10], ebp
mov esi, dword [esp + 0x1a4]
mov dword [esp + 0x14], esi
call fcn.00500660
mov eax, dword [esp + 0x18]
test eax, eax
jge 0x50577d
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x9c]
jmp 0x5057f9
mov dword [esp], 0
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x19c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1a0]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1a4]
mov dword [esp + 0x2c], eax
call fcn.00507910
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov ebx, ecx
jmp 0x5057ff
mov ecx, ebp
test ecx, ecx
jle 0x505812
lea ebp, [ecx - 1]
cmp ebx, ebp
jbe 0x505837
mov esi, dword [eax + ecx*4 - 4]
test esi, esi
je 0x5057fd
cmp ecx, edx
ja 0x505832
mov dword [esp + 0x1a8], eax
mov dword [esp + 0x1ac], ecx
mov dword [esp + 0x1b0], edx
add esp, 0x174
ret
call fcn.0045e7d0
mov eax, ebp
mov ecx, ebx
call fcn.0045e790
mov dword [esp + 0xb0], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x88], ebp
mov ecx, dword [esp + 0x60]
shr ecx, 0x1c
lea ecx, [ecx + ecx*2]
mov ebx, dword [esp + ecx*4 + 0xb4]
mov edx, dword [esp + ecx*4 + 0xb8]
mov ecx, dword [esp + ecx*4 + 0xbc]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x9c]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x19c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x1a0]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x1a4]
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x64]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
call fcn.005009e0
mov eax, dword [esp + 0x68]
add eax, 4
mov edi, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x60]
shl ebx, 4
mov edx, dword [esp + 0x190]
mov dword [esp + 0x68], eax
mov eax, ecx
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x9c], ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
cmp edx, 0x20
jge 0x5055b2
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x6c]
cmp ebx, ecx
jne 0x50594f
test edx, edx
je 0x505840
mov dword [esp + 0x80], ebp
mov dword [esp + 0x7c], eax
mov dword [esp + 0xa4], edi
mov ecx, dword [esp + 0x9c]
mov dword [esp], ecx
mov dword [esp + 4], esi
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x19c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x1a0]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x1a4]
mov dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x64]
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
call fcn.005009e0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0xa4]
mov dword [esp], ebx
mov ebx, dword [esp + 0x7c]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x19c]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1a0]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1a4]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
call fcn.005009e0
mov eax, dword [esp + 0x38]
mov dword [esp + 0xb0], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x88], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x84], edx
mov ebx, dword [esp + 0x9c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x58]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x19c]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1a0]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1a4]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
call fcn.005009e0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x9c], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x5c], edx
mov ebx, dword [esp + 0xb0]
mov dword [esp], ebx
mov ebx, dword [esp + 0x88]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x84]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov ebx, dword [esp + 0x19c]
mov dword [esp + 0x24], ebx
mov ebp, dword [esp + 0x1a0]
mov dword [esp + 0x28], ebp
mov esi, dword [esp + 0x1a4]
mov dword [esp + 0x2c], esi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebp
call fcn.005009e0
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ebp, dword [esp + 0x40]
mov esi, dword [esp + 0x58]
jmp 0x505840
mov eax, ebx
mov ecx, edx
call fcn.0045e790
mov eax, ebp
mov ecx, 0x10
call fcn.0045e790
mov eax, ebp
mov ecx, 0x10
call fcn.0045e790
xor eax, eax
mov ecx, ebx
call fcn.0045e790
nop
call fcn.0045d2d0
jmp fcn.00504dd0