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

Disassembly:
push 0xffffffffffffffff
push 0x4b3eb6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
mov edx, dword [esp + 0x100]
push ebx
push ebp
push esi
xor esi, esi
push edi
lea eax, [esp + 0x40]
push esi
push eax
lea ecx, [esp + 0xc8]
push 0x20
push ecx
push edx
call dword [0x4b618c]
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0xce]
mov eax, dword [esp + 0xc8]
mov ebp, dword [esp + 0xca]
and ecx, 0xffff
and edx, 0xffff
and eax, 0xffff
and ebp, 0xffff
sub edx, ecx
sub ebp, eax
mov dword [esp + 0x44], edx
imul edx, ebp
mov dword [esp + 0x4c], edx
mov ebx, dword [esp + 0xc4]
mov edi, dword [esp + 0x118]
and ebx, 0xffff
add edi, ebp
sub ebx, ecx
xor edx, edx
neg edi
dec ebx
mov dword [esp + 0x108], 3
imul ebx, dword [esp + 0x118]
add ebx, eax
mov eax, dword [esp + 0xc1]
and eax, 0xff
mov dword [esp + 0x2c], esi
dec eax
mov dword [esp + 0x28], esi
cmp eax, 0xef
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0xac], esi
mov dword [esp + 0xa8], esi
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa0], esi
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xec], esi
mov dword [esp + 0xe8], esi
mov dword [esp + 0xe4], esi
mov dword [esp + 0xe0], esi
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf8], esi
mov dword [esp + 0xf4], esi
mov dword [esp + 0xf0], esi
mov dword [esp + 0x54], ebx
ja case.0x403a27.7
xor ecx, ecx
mov cl, byte [eax + 0x405884]
jmp dword [ecx*4 + 0x405868]
mov eax, dword [esp + 0xdc]
mov edx, dword [esp + 0xd0]
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x44], edx
test eax, eax
mov ebx, eax
jbe 0x403a71
push eax
call fcn.004a7e4f
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x403b17
mov dword [esp + 0x30], ebx
test esi, esi
jbe 0x403a9d
mov eax, dword [esp + 0x24]
push esi
test eax, eax
je 0x403a89
push eax
call fcn.004a7341
add esp, 8
jmp 0x403a91
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x24], eax
je 0x403b17
mov dword [esp + 0x34], esi
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x403ada
mov eax, dword [esp + 0x28]
test eax, eax
je 0x403abd
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.004a7341
add esp, 8
jmp 0x403aca
mov edx, dword [esp + 0x10]
push edx
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x28], eax
je 0x403b17
mov eax, dword [esp + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
test eax, eax
jbe 0x403b17
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x403afa
mov ecx, dword [esp + 0x44]
push ecx
push eax
call fcn.004a7341
add esp, 8
jmp 0x403b07
mov edx, dword [esp + 0x44]
push edx
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x2c], eax
je 0x403b17
mov eax, dword [esp + 0x44]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x403b45
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x110]
mov ebx, dword [0x4b618c]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
push eax
push esi
call ebx
jmp 0x403b52
mov esi, dword [esp + 0x110]
mov ebx, dword [0x4b618c]
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
push eax
push esi
call ebx
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
push eax
push esi
call ebx
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
push eax
push esi
call ebx
mov eax, dword [esp + 0xd0]
mov esi, dword [esp + 0x114]
mov ebx, dword [esp + 0x4c]
test eax, eax
je 0x403bc3
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
push ebx
push ebp
push edi
push ecx
push 3
lea ecx, [esi + eax*4]
push edx
push ecx
call fcn.00405980
add esp, 0x1c
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
push ebx
push ebp
push edi
push eax
lea esi, [esi + edx*4]
push 0
push ecx
push esi
call fcn.00405980
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
push ebx
push ebp
push edi
push edx
push 1
push eax
push esi
call fcn.00405980
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
push ebx
push ebp
push edi
push ecx
push 2
push edx
push esi
call fcn.00405980
mov eax, dword [esp + 0x74]
add esp, 0x54
test eax, eax
je 0x403c1d
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x24]
xor esi, esi
cmp eax, esi
je 0x403c30
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x4049ae
jmp 0x4049a5
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xdc]
mov edi, dword [esp + 0xd8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x10], ecx
test eax, eax
mov ebx, eax
jbe 0x403c88
push eax
call fcn.004a7e4f
add esp, 4
mov dword [esp + 0x5c], eax
test eax, eax
je 0x403d2a
mov esi, dword [esp + 0x60]
mov dword [esp + 0x6c], ebx
test edi, edi
jbe 0x403cb0
test esi, esi
push edi
je 0x403c9c
push esi
call fcn.004a7341
add esp, 8
jmp 0x403ca4
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x60], eax
je 0x403d2a
mov dword [esp + 0x70], edi
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x403ced
mov eax, dword [esp + 0x64]
test eax, eax
je 0x403cd0
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.004a7341
add esp, 8
jmp 0x403cdd
mov eax, dword [esp + 0x10]
push eax
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x64], eax
je 0x403d2a
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x403d2a
mov eax, dword [esp + 0x68]
test eax, eax
je 0x403d0d
mov edx, dword [esp + 0x14]
push edx
push eax
call fcn.004a7341
add esp, 8
jmp 0x403d1a
mov eax, dword [esp + 0x14]
push eax
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x68], eax
je 0x403d2a
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x403d58
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x68]
mov esi, dword [esp + 0x110]
mov edi, dword [0x4b618c]
lea edx, [esp + 0x40]
push 0
push edx
push eax
push ecx
push esi
call edi
jmp 0x403d65
mov esi, dword [esp + 0x110]
mov edi, dword [0x4b618c]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x5c]
lea edx, [esp + 0x40]
push 0
push edx
push eax
push ecx
push esi
call edi
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x40]
push 0
push edx
push eax
push ecx
push esi
call edi
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x40]
push 0
push edx
push eax
push ecx
push esi
call edi
lea edx, [esp + 0x40]
push 0
push edx
lea eax, [esp + 0x8c]
push 0x1c
push eax
push esi
call edi
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x403dd3
mov ecx, dword [esp + 0x68]
push 0
push ecx
call fcn.004037d0
add esp, 8
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x64]
push 0
push edx
call fcn.004037d0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
push 0
push eax
call fcn.004037d0
mov ecx, dword [esp + 0x6c]
push 0
push ecx
mov dword [esp + 0x4c], eax
call fcn.004037d0
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
add esp, 0x18
test eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], edx
mov edi, eax
jbe 0x403e48
mov ecx, dword [esp + 0x20]
push eax
test ecx, ecx
je 0x403e30
push ecx
call fcn.004a7341
add esp, 8
jmp 0x403e38
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x403ed4
mov dword [esp + 0x30], edi
test esi, esi
jbe 0x403e74
mov eax, dword [esp + 0x24]
push esi
test eax, eax
je 0x403e60
push eax
call fcn.004a7341
add esp, 8
jmp 0x403e68
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x24], eax
je 0x403ed4
mov dword [esp + 0x34], esi
test ebx, ebx
jbe 0x403ea0
mov eax, dword [esp + 0x28]
push ebx
test eax, eax
je 0x403e8c
push eax
call fcn.004a7341
add esp, 8
jmp 0x403e94
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x28], eax
je 0x403ed4
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x48]
test ecx, ecx
jbe 0x403ed4
mov eax, dword [esp + 0x2c]
push ecx
test eax, eax
je 0x403ebc
push eax
call fcn.004a7341
add esp, 8
jmp 0x403ec4
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x2c], eax
je 0x403ed4
mov eax, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x403ef1
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x68]
push ecx
push edx
call fcn.004037d0
add esp, 8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x64]
push eax
push ecx
call fcn.004037d0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x68]
push edx
push eax
call fcn.004037d0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x6c]
push ecx
push edx
call fcn.004037d0
mov eax, dword [esp + 0x74]
xor ebx, ebx
add esp, 0x18
cmp eax, ebx
je 0x403f34
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x60]
cmp eax, ebx
je 0x403f45
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x64]
cmp eax, ebx
je 0x403f56
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x68]
cmp eax, ebx
je 0x403f67
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0xd0]
mov dword [esp + 0x68], ebx
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x78], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
je 0x4041d5
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x18], eax
mov eax, ebp
cdq
idiv ecx
mov edi, dword [esp + 0x4c]
push edi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
cdq
idiv ecx
imul ecx, ebp
mov dword [esp + 0x84], ecx
mov esi, eax
call fcn.004a7e4f
mov edx, eax
mov ecx, edi
mov dword [esp + 0x20], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x20]
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x18]
cmp esi, ebx
mov dword [esp + 0x58], edx
jle 0x4040d5
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x10], edx
test esi, esi
jle 0x404062
mov dword [esp + 0x7c], esi
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x404051
mov ebx, ecx
mov esi, eax
mov edi, edx
add edx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x14]
add eax, ecx
inc esi
cmp esi, ecx
mov dword [esp + 0x14], esi
jl 0x404023
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x7c]
add edx, ecx
dec esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x7c], esi
jne 0x404017
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x4040b3
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x4040b3
mov edi, dword [esp + 0x90]
mov ecx, edi
mov esi, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x90]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
add eax, edi
inc esi
cmp esi, ecx
mov dword [esp + 0x14], esi
jl 0x404080
mov edx, dword [esp + 0x58]
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x50]
add edx, edi
dec esi
mov dword [esp + 0x58], edx
mov dword [esp + 0x50], esi
jne 0x404007
jmp 0x4040dc
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x98]
test esi, esi
je 0x4041ae
mov esi, dword [esp + 0x48]
mov dword [esp + 0x10], edx
test esi, esi
jle 0x404156
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x50], esi
test edi, edi
mov dword [esp + 0x14], 0
jle 0x404143
mov ebx, ecx
mov esi, eax
mov edi, edx
add edx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x9c]
add eax, ecx
inc esi
cmp esi, edi
mov dword [esp + 0x14], esi
jl 0x40410e
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x50]
add edx, ecx
dec esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x50], esi
jne 0x404102
jmp 0x40415d
mov edi, dword [esp + 0x9c]
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x4041ae
test edi, edi
mov dword [esp + 0x14], 0
jle 0x4041ae
mov esi, dword [esp + 0x90]
mov ecx, esi
mov esi, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x90]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x9c]
add eax, esi
inc ecx
cmp ecx, edi
mov dword [esp + 0x14], ecx
jl 0x40417b
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov edx, ecx
mov esi, eax
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004a72f9
add esp, 4
xor ebx, ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x7c], eax
mov eax, ebp
cdq
idiv ecx
mov edi, dword [esp + 0x4c]
push edi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x48]
cdq
idiv ecx
imul ecx, ebp
mov dword [esp + 0x84], ecx
mov esi, eax
call fcn.004a7e4f
mov edx, eax
mov ecx, edi
mov dword [esp + 0x5c], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x5c]
and ecx, 3
add esp, 4
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x7c]
cmp esi, ebx
mov dword [esp + 0x1c], edx
jle 0x404314
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x10], edx
test esi, esi
jle 0x4042a1
mov dword [esp + 0x18], esi
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x404290
mov ebx, ecx
mov esi, eax
mov edi, edx
add edx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x14]
add eax, ecx
inc esi
cmp esi, ecx
mov dword [esp + 0x14], esi
jl 0x404262
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add edx, ecx
dec esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jne 0x404256
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x4042f2
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x4042f2
mov edi, dword [esp + 0x90]
mov ecx, edi
mov esi, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x90]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
add eax, edi
inc esi
cmp esi, ecx
mov dword [esp + 0x14], esi
jl 0x4042bf
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x50]
add edx, edi
dec esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x50], esi
jne 0x404246
jmp 0x40431b
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x98]
test esi, esi
je 0x4043ed
mov esi, dword [esp + 0x48]
mov dword [esp + 0x10], edx
test esi, esi
jle 0x404395
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x18], esi
test edi, edi
mov dword [esp + 0x14], 0
jle 0x404382
mov ebx, ecx
mov esi, eax
mov edi, edx
add edx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x9c]
add eax, ecx
inc esi
cmp esi, edi
mov dword [esp + 0x14], esi
jl 0x40434d
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add edx, ecx
dec esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jne 0x404341
jmp 0x40439c
mov edi, dword [esp + 0x9c]
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x4043ed
test edi, edi
mov dword [esp + 0x14], 0
jle 0x4043ed
mov esi, dword [esp + 0x90]
mov ecx, esi
mov esi, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x90]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x9c]
add eax, esi
inc ecx
cmp ecx, edi
mov dword [esp + 0x14], ecx
jl 0x4043ba
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x58]
mov edi, dword [esp + 0x7c]
mov ecx, ebx
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004a72f9
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x80], eax
mov eax, ebp
cdq
idiv ecx
push ebx
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x4c]
cdq
idiv ecx
imul ecx, ebp
mov dword [esp + 0x88], ecx
mov esi, eax
call fcn.004a7e4f
mov edx, eax
mov ecx, ebx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
add esp, 8
and ecx, 3
mov dword [esp + 0x48], edx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x1c], edx
test esi, esi
jle 0x404549
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x10], edx
test esi, esi
jle 0x4044d6
mov dword [esp + 0x18], esi
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x4044c5
mov ebx, ecx
mov esi, eax
mov edi, edx
add edx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x14]
add eax, ecx
inc esi
cmp esi, ecx
mov dword [esp + 0x14], esi
jl 0x404497
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add edx, ecx
dec esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jne 0x40448b
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x404527
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x404527
mov edi, dword [esp + 0x90]
mov ecx, edi
mov esi, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x90]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
add eax, edi
inc esi
cmp esi, ecx
mov dword [esp + 0x14], esi
jl 0x4044f4
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x50]
add edx, edi
dec esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x50], esi
jne 0x40447b
jmp 0x404550
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x98]
test esi, esi
je 0x404622
mov esi, dword [esp + 0x58]
mov dword [esp + 0x10], edx
test esi, esi
jle 0x4045ca
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x18], esi
test edi, edi
mov dword [esp + 0x14], 0
jle 0x4045b7
mov ebx, ecx
mov esi, eax
mov edi, edx
add edx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x9c]
add eax, ecx
inc esi
cmp esi, edi
mov dword [esp + 0x14], esi
jl 0x404582
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add edx, ecx
dec esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jne 0x404576
jmp 0x4045d1
mov edi, dword [esp + 0x9c]
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x404622
test edi, edi
mov dword [esp + 0x14], 0
jle 0x404622
mov esi, dword [esp + 0x90]
mov ecx, esi
mov esi, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x90]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x9c]
add eax, esi
inc ecx
cmp ecx, edi
mov dword [esp + 0x14], ecx
jl 0x4045ef
mov ebx, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov edi, dword [esp + 0x7c]
mov ecx, ebx
mov edx, ecx
mov esi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004a72f9
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x5c], eax
mov eax, ebp
cdq
idiv ecx
push ebx
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x4c]
cdq
idiv ecx
imul ecx, ebp
mov dword [esp + 0x88], ecx
mov esi, eax
call fcn.004a7e4f
mov edx, eax
mov ecx, ebx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
add esp, 8
and ecx, 3
mov dword [esp + 0x7c], edx
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x58]
mov dword [esp + 0x1c], edx
test esi, esi
jle 0x40477b
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x50], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x10], edx
test esi, esi
jle 0x404708
mov dword [esp + 0x18], esi
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x4046f7
mov ebx, ecx
mov esi, eax
mov edi, edx
add edx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x14]
add eax, ecx
inc esi
cmp esi, ecx
mov dword [esp + 0x14], esi
jl 0x4046c9
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add edx, ecx
dec esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jne 0x4046bd
mov esi, dword [esp + 0x8c]
test esi, esi
je 0x404759
test ecx, ecx
mov dword [esp + 0x14], 0
jle 0x404759
mov edi, dword [esp + 0x90]
mov ecx, edi
mov esi, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x90]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x84]
add eax, edi
inc esi
cmp esi, ecx
mov dword [esp + 0x14], esi
jl 0x404726
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x80]
mov esi, dword [esp + 0x50]
add edx, edi
dec esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x50], esi
jne 0x4046ad
jmp 0x404782
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x98]
test esi, esi
je 0x404854
mov esi, dword [esp + 0x48]
mov dword [esp + 0x10], edx
test esi, esi
jle 0x4047fc
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x18], esi
test edi, edi
mov dword [esp + 0x14], 0
jle 0x4047e9
mov ebx, ecx
mov esi, eax
mov edi, edx
add edx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x84]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x9c]
add eax, ecx
inc esi
cmp esi, edi
mov dword [esp + 0x14], esi
jl 0x4047b4
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add edx, ecx
dec esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
jne 0x4047a8
jmp 0x404803
mov edi, dword [esp + 0x9c]
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x404854
test edi, edi
mov dword [esp + 0x14], 0
jle 0x404854
mov esi, dword [esp + 0x90]
mov ecx, esi
mov esi, eax
mov ebx, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add edx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x90]
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x9c]
add eax, esi
inc ecx
cmp ecx, edi
mov dword [esp + 0x14], ecx
jl 0x404821
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x7c]
mov edi, dword [esp + 0x58]
mov edx, ecx
mov esi, eax
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004a72f9
mov eax, dword [esp + 0x118]
mov ecx, dword [esp + 0x58]
xor esi, esi
add esp, 4
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0xd0]
cmp eax, esi
mov dword [esp + 0x18], edi
je 0x40490b
mov ecx, dword [esp + 0x44]
xor eax, eax
cmp ecx, esi
jle 0x40497b
mov dword [esp + 0x1c], ecx
test ebp, ebp
jle 0x4048f2
mov esi, edi
mov dword [esp + 0x18], ebp
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
xor edx, edx
add esi, 4
mov dh, byte [eax + ecx]
mov ecx, dword [esp + 0x20]
mov dl, byte [eax + ecx]
xor ecx, ecx
mov cl, byte [eax + ebx]
mov ebx, dword [esp + 0x28]
shl edx, 8
or edx, ecx
xor ecx, ecx
mov cl, byte [eax + ebx]
shl edx, 8
or edx, ecx
mov ecx, dword [esp + 0x18]
mov dword [esi - 4], edx
inc eax
dec ecx
mov dword [esp + 0x18], ecx
jne 0x4048b4
mov edx, dword [esp + 0x118]
mov ecx, dword [esp + 0x1c]
neg edx
dec ecx
lea edi, [edi + edx*4]
mov dword [esp + 0x1c], ecx
jne 0x4048aa
jmp 0x404979
mov ecx, dword [esp + 0x44]
xor eax, eax
cmp ecx, esi
jle 0x40497b
mov dword [esp + 0x1c], ecx
jmp 0x40491d
xor esi, esi
cmp ebp, esi
jle 0x40495e
mov ecx, edi
mov esi, ebp
mov edi, dword [esp + 0x20]
xor edx, edx
xor ebx, ebx
add ecx, 4
mov dl, byte [eax + edi]
mov edi, dword [esp + 0x24]
or edx, 0xffffff00
mov bl, byte [eax + edi]
mov edi, dword [esp + 0x28]
shl edx, 8
or edx, ebx
xor ebx, ebx
mov bl, byte [eax + edi]
shl edx, 8
or edx, ebx
inc eax
mov dword [ecx - 4], edx
dec esi
jne 0x404925
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x118]
neg ecx
lea edi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
jne 0x40491b
xor esi, esi
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x40498c
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, esi
je 0x40499d
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x28]
cmp eax, esi
je 0x4049ae
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x2c]
cmp eax, esi
je 0x4049bf
push eax
call fcn.004a72f9
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
jmp 0x40571f
mov eax, dword [esp + 0xdc]
mov edx, dword [esp + 0xd0]
mov edi, dword [esp + 0xd8]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x4c], edx
test eax, eax
mov ebx, eax
jbe 0x404a2b
push eax
call fcn.004a7e4f
add esp, 4
mov dword [esp + 0x5c], eax
test eax, eax
je 0x404acd
mov esi, dword [esp + 0x60]
mov dword [esp + 0x6c], ebx
test edi, edi
jbe 0x404a53
test esi, esi
push edi
je 0x404a3f
push esi
call fcn.004a7341
add esp, 8
jmp 0x404a47
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x60], eax
je 0x404acd
mov dword [esp + 0x70], edi
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x404a90
mov eax, dword [esp + 0x64]
test eax, eax
je 0x404a73
mov ecx, dword [esp + 0x10]
push ecx
push eax
call fcn.004a7341
add esp, 8
jmp 0x404a80
mov edx, dword [esp + 0x10]
push edx
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x64], eax
je 0x404acd
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x4c]
test eax, eax
jbe 0x404acd
mov eax, dword [esp + 0x68]
test eax, eax
je 0x404ab0
mov ecx, dword [esp + 0x4c]
push ecx
push eax
call fcn.004a7341
add esp, 8
jmp 0x404abd
mov edx, dword [esp + 0x4c]
push edx
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x68], eax
je 0x404acd
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x404afb
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x68]
mov esi, dword [esp + 0x110]
mov edi, dword [0x4b618c]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
push eax
push esi
call edi
jmp 0x404b08
mov esi, dword [esp + 0x110]
mov edi, dword [0x4b618c]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
push eax
push esi
call edi
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
push eax
push esi
call edi
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x40]
push 0
push ecx
push edx
push eax
push esi
call edi
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x404b62
mov ecx, dword [esp + 0x68]
push 0
push ecx
call fcn.004037d0
add esp, 8
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x64]
push 0
push edx
call fcn.004037d0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
push 0
push eax
call fcn.004037d0
mov ecx, dword [esp + 0x6c]
push 0
push ecx
mov dword [esp + 0x4c], eax
call fcn.004037d0
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
add esp, 0x18
test eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x18], edx
mov edi, eax
jbe 0x404bd7
mov ecx, dword [esp + 0x20]
push eax
test ecx, ecx
je 0x404bbf
push ecx
call fcn.004a7341
add esp, 8
jmp 0x404bc7
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x404c63
mov dword [esp + 0x30], edi
test esi, esi
jbe 0x404c03
mov eax, dword [esp + 0x24]
push esi
test eax, eax
je 0x404bef
push eax
call fcn.004a7341
add esp, 8
jmp 0x404bf7
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x24], eax
je 0x404c63
mov dword [esp + 0x34], esi
test ebx, ebx
jbe 0x404c2f
mov eax, dword [esp + 0x28]
push ebx
test eax, eax
je 0x404c1b
push eax
call fcn.004a7341
add esp, 8
jmp 0x404c23
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x28], eax
je 0x404c63
mov dword [esp + 0x38], ebx
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x404c63
mov eax, dword [esp + 0x2c]
push ecx
test eax, eax
je 0x404c4b
push eax
call fcn.004a7341
add esp, 8
jmp 0x404c53
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x2c], eax
je 0x404c63
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x404c80
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x68]
push ecx
push edx
call fcn.004037d0
add esp, 8
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x64]
push eax
push ecx
call fcn.004037d0
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x68]
push edx
push eax
call fcn.004037d0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x6c]
push ecx
push edx
call fcn.004037d0
mov eax, dword [esp + 0x74]
add esp, 0x18
test eax, eax
je 0x404cc1
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x60]
test eax, eax
je 0x404cd2
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x64]
test eax, eax
je 0x404ce3
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x68]
test eax, eax
je 0x404cf4
push eax
call fcn.004a72f9
add esp, 4
lea ecx, [esp + 0x5c]
call fcn.00405ae0
mov eax, dword [esp + 0x114]
mov ecx, dword [esp + 0x54]
lea edx, [eax + ecx*4]
mov eax, dword [esp + 0xd0]
test eax, eax
mov dword [esp + 0x10], edx
je 0x404dad
mov eax, dword [esp + 0x44]
xor edi, edi
xor ecx, ecx
test eax, eax
jle 0x404e17
mov dword [esp + 0x1c], eax
test ebp, ebp
mov dword [esp + 0x18], 0
jle 0x404d90
mov esi, edx
cmp dword [esp + 0x3c], edi
jge 0x404d90
mov eax, dword [esp + 0x2c]
mov al, byte [edi + eax]
test al, al
jbe 0x404d7f
mov ebx, dword [esp + 0x20]
xor edx, edx
mov dl, byte [ecx + ebx]
mov ebx, dword [esp + 0x24]
mov dh, al
xor eax, eax
mov al, byte [ecx + ebx]
mov ebx, dword [esp + 0x28]
shl edx, 8
or edx, eax
xor eax, eax
mov al, byte [ecx + ebx]
shl edx, 8
or edx, eax
inc ecx
mov dword [esi], edx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add esi, 4
inc eax
inc edi
cmp eax, ebp
mov dword [esp + 0x18], eax
jl 0x404d40
mov eax, dword [esp + 0x118]
neg eax
lea edx, [edx + eax*4]
mov eax, dword [esp + 0x1c]
dec eax
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
jne 0x404d32
jmp 0x404e17
mov ecx, dword [esp + 0x44]
xor eax, eax
test ecx, ecx
jle 0x404e17
mov dword [esp + 0x18], ecx
test ebp, ebp
jle 0x404dfc
mov ecx, edx
mov esi, ebp
mov edi, dword [esp + 0x20]
xor edx, edx
xor ebx, ebx
add ecx, 4
mov dl, byte [eax + edi]
mov edi, dword [esp + 0x24]
or edx, 0xffffff00
mov bl, byte [eax + edi]
mov edi, dword [esp + 0x28]
shl edx, 8
or edx, ebx
xor ebx, ebx
mov bl, byte [eax + edi]
shl edx, 8
or edx, ebx
inc eax
mov dword [ecx - 4], edx
dec esi
jne 0x404dc3
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x118]
neg ecx
lea edx, [edx + ecx*4]
mov ecx, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
jne 0x404dbb
mov eax, dword [esp + 0x20]
test eax, eax
je 0x404e28
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x404e39
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x404e4a
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4052a4
jmp 0x40529b
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xdc]
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x10], ecx
test eax, eax
mov ebx, eax
jbe 0x404eab
push eax
call fcn.004a7e4f
add esp, 4
mov dword [esp + 0xa0], eax
test eax, eax
je 0x404f69
mov edx, dword [esp + 0xa4]
mov dword [esp + 0xb0], ebx
test esi, esi
jbe 0x404edd
test edx, edx
push esi
je 0x404ebf
push edx
call fcn.004a7341
add esp, 8
jmp 0x404ec7
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0xa4], eax
je 0x404f69
mov dword [esp + 0xb4], esi
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x404f23
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x404f00
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.004a7341
add esp, 8
jmp 0x404f0d
mov eax, dword [esp + 0x10]
push eax
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0xa8], eax
je 0x404f69
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xb8], ecx
mov eax, dword [esp + 0x44]
test eax, eax
jbe 0x404f69
mov eax, dword [esp + 0xac]
test eax, eax
je 0x404f46
mov edx, dword [esp + 0x44]
push edx
push eax
call fcn.004a7341
add esp, 8
jmp 0x404f53
mov eax, dword [esp + 0x44]
push eax
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0xac], eax
je 0x404f69
mov ecx, dword [esp + 0x44]
mov dword [esp + 0xbc], ecx
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x404f9d
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0x110]
mov ebx, dword [0x4b618c]
lea edx, [esp + 0x40]
push 0
push edx
push eax
push ecx
push esi
call ebx
jmp 0x404faa
mov ebx, dword [0x4b618c]
mov esi, dword [esp + 0x110]
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa0]
lea edx, [esp + 0x40]
push 0
push edx
push eax
push ecx
push esi
call ebx
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xa4]
lea edx, [esp + 0x40]
push 0
push edx
push eax
push ecx
push esi
call ebx
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xa8]
lea edx, [esp + 0x40]
push 0
push edx
push eax
push ecx
push esi
call ebx
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x405019
mov edx, dword [esp + 0xac]
push 0
push edx
call fcn.004034f0
add esp, 8
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa0]
push 0
push eax
call fcn.004034f0
mov ecx, dword [esp + 0xac]
push 0
push ecx
mov dword [esp + 0x40], eax
call fcn.004034f0
mov edx, dword [esp + 0xb8]
push 0
push edx
mov dword [esp + 0x4c], eax
call fcn.004034f0
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x48]
add esp, 0x18
test eax, eax
mov dword [esp + 0x18], ecx
mov ebx, eax
jbe 0x40509e
mov ecx, dword [esp + 0x20]
push eax
test ecx, ecx
je 0x405086
push ecx
call fcn.004a7341
add esp, 8
jmp 0x40508e
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x20], eax
je 0x40512d
mov dword [esp + 0x30], ebx
test esi, esi
jbe 0x4050ca
mov eax, dword [esp + 0x24]
push esi
test eax, eax
je 0x4050b6
push eax
call fcn.004a7341
add esp, 8
jmp 0x4050be
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x24], eax
je 0x40512d
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x80]
test esi, esi
jbe 0x4050fd
mov eax, dword [esp + 0x28]
push esi
test eax, eax
je 0x4050e9
push eax
call fcn.004a7341
add esp, 8
jmp 0x4050f1
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x28], eax
je 0x40512d
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x18]
test esi, esi
jbe 0x40512d
mov eax, dword [esp + 0x2c]
push esi
test eax, eax
je 0x405119
push eax
call fcn.004a7341
add esp, 8
jmp 0x405121
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0x2c], eax
je 0x40512d
mov dword [esp + 0x3c], esi
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x40514d
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0xac]
push edx
push eax
call fcn.004034f0
add esp, 8
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xa0]
push ecx
push edx
call fcn.004034f0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xac]
push eax
push ecx
call fcn.004034f0
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0xb8]
push edx
push eax
call fcn.004034f0
mov eax, dword [esp + 0xb8]
add esp, 0x18
test eax, eax
je 0x40519a
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x4051ae
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x4051c2
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0xac]
test eax, eax
je 0x4051d6
push eax
call fcn.004a72f9
add esp, 4
lea ecx, [esp + 0xa0]
call fcn.00405ae0
mov eax, dword [esp + 0xd0]
mov esi, dword [esp + 0x114]
mov ebx, dword [esp + 0x4c]
test eax, eax
je 0x405217
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
push ebx
push ebp
push edi
push ecx
push 3
lea ecx, [esi + eax*4]
push edx
push ecx
call fcn.00405980
add esp, 0x1c
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
push ebx
push ebp
push edi
push eax
lea esi, [esi + edx*4]
push 0
push ecx
push esi
call fcn.00405980
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x40]
push ebx
push ebp
push edi
push edx
push 1
push eax
push esi
call fcn.00405980
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x58]
push ebx
push ebp
push edi
push ecx
push 2
push edx
push esi
call fcn.00405980
mov eax, dword [esp + 0x74]
add esp, 0x54
test eax, eax
je 0x405271
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x405282
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x405293
push eax
call fcn.004a72f9
add esp, 4
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4052a4
push eax
call fcn.004a72f9
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00405ae0
jmp 0x40571f
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xdc]
mov esi, dword [esp + 0xd8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x10], ecx
test eax, eax
mov edi, eax
jbe 0x405302
push eax
call fcn.004a7e4f
add esp, 4
mov dword [esp + 0xa0], eax
test eax, eax
je 0x4053c0
mov edx, dword [esp + 0xa4]
mov dword [esp + 0xb0], edi
test esi, esi
jbe 0x405334
test edx, edx
push esi
je 0x405316
push edx
call fcn.004a7341
add esp, 8
jmp 0x40531e
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0xa4], eax
je 0x4053c0
mov dword [esp + 0xb4], esi
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x40537a
mov eax, dword [esp + 0xa8]
test eax, eax
je 0x405357
mov edx, dword [esp + 0x10]
push edx
push eax
call fcn.004a7341
add esp, 8
jmp 0x405364
mov eax, dword [esp + 0x10]
push eax
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0xa8], eax
je 0x4053c0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xb8], ecx
mov eax, dword [esp + 0x54]
test eax, eax
jbe 0x4053c0
mov eax, dword [esp + 0xac]
test eax, eax
je 0x40539d
mov edx, dword [esp + 0x54]
push edx
push eax
call fcn.004a7341
add esp, 8
jmp 0x4053aa
mov eax, dword [esp + 0x54]
push eax
call fcn.004a7e4f
add esp, 4
test eax, eax
mov dword [esp + 0xac], eax
je 0x4053c0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xbc], ecx
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x4053f4
mov eax, dword [esp + 0xbc]
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0x110]
mov edi, dword [0x4b618c]
lea edx, [esp + 0x40]
push 0
push edx
push eax
push ecx
push esi
call edi
jmp 0x405401
mov edi, dword [0x4b618c]
mov esi, dword [esp + 0x110]
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0xa0]
lea edx, [esp + 0x40]
push 0
push edx
push eax
push ecx
push esi
call edi
mov eax, dword [esp + 0xb4]
mov ecx, dword [esp + 0xa4]
lea edx, [esp + 0x40]
push 0
push edx
push eax
push ecx
push esi
call edi
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xa8]
lea edx, [esp + 0x40]
push 0
push edx
push eax
push ecx
push esi
call edi
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x405473
mov edx, dword [esp + 0xac]
push 0
push edx
call fcn.004034f0
add esp, 8
mov dword [esp + 0xfc], eax
mov eax, dword [esp + 0xa0]
push 0
push eax
call fcn.004034f0
mov ecx, dword [esp + 0xac]
push 0
push ecx
mov dword [esp + 0x100], eax
call fcn.004034f0
mov edx, dword [esp + 0xb8]
push 0
push edx
mov dword [esp + 0x10c], eax
call fcn.004034f0
mov ecx, dword [esp + 0x114]
mov edx, dword [esp + 0x10c]
add esp, 0x18
mov dword [esp + 0xf8], eax
push ecx
push eax
mov eax, dword [esp + 0xf8]
push edx
push eax
lea ecx, [esp + 0xf0]
call fcn.00405b00
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x405500
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0xac]
push ecx
push edx
call fcn.004034f0
add esp, 8
mov eax, dword [esp + 0xe0]
mov ecx, dword [esp + 0xa0]
push eax
push ecx
call fcn.004034f0
mov edx, dword [esp + 0xec]
mov eax, dword [esp + 0xac]
push edx
push eax
call fcn.004034f0
mov ecx, dword [esp + 0xf8]
mov edx, dword [esp + 0xb8]
push ecx
push edx
call fcn.004034f0
add esp, 0x18
lea ecx, [esp + 0xa0]
call fcn.00405be0
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x40556f
mov eax, dword [esp + 0xec]
push 0
push eax
call fcn.00403720
add esp, 8
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0xe0]
push 0
push ecx
call fcn.00403720
mov edx, dword [esp + 0xec]
push 0
push edx
mov dword [esp + 0x40], eax
call fcn.00403720
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xf8]
push 0
push eax
call fcn.00403720
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x4c]
add esp, 0x18
mov dword [esp + 0x38], eax
push ecx
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.00405b00
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x4055e4
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0xec]
push ecx
push edx
call fcn.00403720
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xe0]
push eax
push ecx
call fcn.00403720
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0xec]
push edx
push eax
call fcn.00403720
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0xf8]
push ecx
push edx
call fcn.00403720
add esp, 0x18
lea ecx, [esp + 0xe0]
call fcn.00405be0
mov eax, dword [esp + 0x114]
lea edi, [eax + ebx*4]
mov eax, dword [esp + 0xd0]
test eax, eax
mov dword [esp + 0x18], edi
je 0x4056b5
mov ecx, dword [esp + 0x44]
xor eax, eax
test ecx, ecx
jle 0x40571f
mov dword [esp + 0x1c], ecx
test ebp, ebp
jle 0x40569c
mov esi, edi
mov dword [esp + 0x18], ebp
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x24]
xor ecx, ecx
add esi, 4
mov ch, byte [eax + edx]
mov edx, dword [esp + 0x20]
mov cl, byte [eax + edx]
xor edx, edx
mov dl, byte [eax + ebx]
mov ebx, dword [esp + 0x28]
shl ecx, 8
or ecx, edx
xor edx, edx
mov dl, byte [eax + ebx]
shl ecx, 8
or ecx, edx
inc eax
mov dword [esi - 4], ecx
mov ecx, dword [esp + 0x18]
dec ecx
mov dword [esp + 0x18], ecx
jne 0x40565e
mov ecx, dword [esp + 0x118]
neg ecx
lea edi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x1c], ecx
jne 0x405654
jmp 0x40571f
mov ecx, dword [esp + 0x44]
xor eax, eax
test ecx, ecx
jle 0x40571f
mov dword [esp + 0x1c], ecx
test ebp, ebp
jle 0x405704
mov ecx, edi
mov esi, ebp
mov edi, dword [esp + 0x20]
xor edx, edx
xor ebx, ebx
add ecx, 4
mov dl, byte [eax + edi]
mov edi, dword [esp + 0x24]
or edx, 0xffffff00
mov bl, byte [eax + edi]
mov edi, dword [esp + 0x28]
shl edx, 8
or edx, ebx
xor ebx, ebx
mov bl, byte [eax + edi]
shl edx, 8
or edx, ebx
inc eax
mov dword [ecx - 4], edx
dec esi
jne 0x4056cb
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x118]
neg ecx
lea edi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
dec ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
jne 0x4056c3
lea ecx, [esp + 0x20]
call fcn.00405be0
lea ecx, [esp + 0x5c]
call fcn.00405be0
lea ecx, [esp + 0xa0]
call fcn.00405be0
lea ecx, [esp + 0xe0]
call fcn.00405be0
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 2
call fcn.00405a80
lea ecx, [esp + 0xa0]
mov byte [esp + 0x108], 1
call fcn.00405a80
lea ecx, [esp + 0x5c]
mov byte [esp + 0x108], 0
call fcn.00405a80
lea ecx, [esp + 0x20]
mov dword [esp + 0x108], 0xffffffff
call fcn.00405a80
mov eax, 1
jmp 0x40584f
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 2
call fcn.00405be0
lea ecx, [esp + 0xe0]
call fcn.00405ae0
lea ecx, [esp + 0xa0]
mov byte [esp + 0x108], 1
call fcn.00405a80
lea ecx, [esp + 0x5c]
mov byte [esp + 0x108], 0
call fcn.00405a80
lea ecx, [esp + 0x20]
mov dword [esp + 0x108], 0xffffffff
call fcn.00405a80
mov eax, 1
jmp 0x40584f
lea ecx, [esp + 0xe0]
mov byte [esp + 0x108], 2
call fcn.00405a80
lea ecx, [esp + 0xa0]
mov byte [esp + 0x108], 1
call fcn.00405a80
lea ecx, [esp + 0x5c]
mov byte [esp + 0x108], 0
call fcn.00405a80
lea ecx, [esp + 0x20]
mov dword [esp + 0x108], 0xffffffff
call fcn.00405a80
xor eax, eax
mov ecx, dword [esp + 0x100]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xfc
ret