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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1f4
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x82c]
push esi
push edi
mov ecx, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xb4], eax
mov eax, dword [ebx + 0x830]
sar ecx, 1
xor edi, edi
push 0x104
mov dword [esp + 0x14], ecx
mov dword [esp + 0x98], eax
mov eax, dword [ebx + 0x938]
lea edx, [esp + 0xc0]
lea ecx, [ebx + 0x300]
push edi
push edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0xc4], edi
call fcn.0043e820
mov eax, dword [ebx + 0x8b8]
mov esi, dword [ebx + 0x8f0]
mov dword [esp + 0x58], eax
mov eax, dword [ebx + 0x91c]
xor edx, edx
div esi
add esp, 0xc
mov dword [ebx + 0x918], 1
mov ecx, eax
mov eax, dword [ebx + 0x920]
mov dword [ebx + 0x928], edx
xor edx, edx
div esi
mov esi, ebx
sub ecx, eax
mov dword [ebx + 0x924], ecx
call fcn.00403960
cmp dword [ebx + 0x830], edi
mov ecx, dword [ebx + 0x868]
mov dword [ebx + 0x894], ecx
mov dword [esp + 0x24], edi
jle 0x404ed7
mov eax, dword [esp + 0x14]
shl eax, 4
mov dword [esp + 0x8c], eax
xor esi, esi
cmp dword [ebx + 0x82c], esi
jle 0x404ebe
cmp dword [ebx + 0xb38], 0
je 0x404e61
mov eax, dword [ebx + 0x894]
mov edx, dword [esp + 0x14]
mov ecx, dword [ebx + 0x8a0]
push edx
mov edx, dword [ebx + 0x89c]
add eax, edi
add eax, esi
push eax
mov eax, dword [ebx + 0x898]
add ecx, edi
add ecx, esi
add edx, edi
push ecx
add edx, esi
add eax, edi
push edx
add eax, esi
push eax
call dword [0x4ae8d0]
add esp, 0x14
jmp 0x404ea8
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x894]
mov edx, dword [ebx + 0x898]
push eax
add ecx, edi
push eax
add ecx, esi
add edx, edi
push ecx
add edx, esi
push edx
call dword [0x4ae8b8]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebx + 0x89c]
push eax
push eax
mov eax, dword [ebx + 0x894]
add eax, edi
add eax, esi
add ecx, edi
push eax
add ecx, esi
push ecx
call dword [0x4ae8c4]
add esp, 0x20
add esi, 0x10
cmp esi, dword [ebx + 0x82c]
jl 0x404e1c
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x24]
add ecx, 0x10
add edi, eax
cmp ecx, dword [ebx + 0x830]
mov dword [esp + 0x24], ecx
jl 0x404e0e
mov eax, dword [ebx + 0x82c]
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
xor eax, eax
cmp dword [ebx + 0x830], eax
mov dword [esp + 0x24], eax
jle 0x405eca
mov dword [esp + 0x48], eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x14]
shl eax, 4
mov dword [esp + 0x8c], eax
cmp dword [ebx + 0x82c], 0
mov dword [esp + 0x28], 0
jle 0x405ea3
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, ecx
sar eax, 1
mov dword [esp + 0xb0], eax
imul eax, dword [esp + 0x10]
mov dword [esp + 0x60], eax
lea eax, [edx*8 + 8]
sar ecx, 4
mov dword [esp + 0x90], eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x50], 0
jmp 0x404f70
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
add eax, dword [esp + 0x34]
mov edi, dword [esp + 0x28]
add eax, edi
lea edx, [eax + 8]
mov dword [esp + 0x9c], edx
mov edx, dword [esp + 0x14]
lea edx, [eax + edx*8]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x90]
add edx, eax
mov dword [esp + 0xa4], edx
mov edx, dword [esp + 0x60]
mov eax, edi
sar eax, 1
mov dword [esp + 0x38], eax
add eax, edx
mov edx, dword [ecx + 4]
add edx, eax
mov esi, dword [esp + 0x64]
mov dword [esp + 0xa8], edx
mov edx, dword [ecx + 8]
add edx, eax
mov eax, dword [ebx + 0x834]
imul eax, dword [esp + 0x5c]
mov dword [esp + 0xac], edx
mov edx, edi
sar edx, 4
add eax, edx
imul eax, eax, 0x124
add eax, dword [esp + 0x4c]
mov dword [esp + 0x6c], edx
mov edx, esi
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x68]
sub edx, esi
mov dword [eax + 0x5c], edx
je 0x405041
cmp edx, 0xfffffffe
jge 0x405010
mov dword [eax + 0x5c], 0xfffffffe
jmp 0x40501c
cmp edx, 2
jle 0x40501c
mov dword [eax + 0x5c], 2
mov edx, dword [eax + 0x5c]
add edx, esi
cmp edx, 1
mov dword [esp + 0x1c], edx
jge 0x405034
mov dword [esp + 0x1c], 1
jmp 0x405041
cmp edx, 0x1f
jle 0x405041
mov dword [esp + 0x1c], 0x1f
mov edx, dword [esp + 0x1c]
mov esi, edx
sub esi, dword [esp + 0x68]
mov dword [eax + 0x58], edx
mov dword [eax + 0x5c], esi
mov esi, dword [ebx + 0x834]
imul esi, dword [esp + 0x5c]
add esi, dword [esp + 0x6c]
mov ecx, dword [ecx]
mov eax, dword [ebx + 0x868]
imul esi, esi, 0x124
add esi, dword [esp + 0x4c]
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x34]
add ecx, edx
add eax, edx
mov edx, dword [esp + 0xb4]
push edx
add eax, edi
push edx
add ecx, edi
push eax
push ecx
mov dword [esp + 0xa8], ecx
mov dword [esp + 0x80], eax
mov dword [esp + 0x4c], esi
call dword [0x4ae81c]
add esp, 0x10
cmp eax, 0x100
mov dword [esp + 0x18], eax
jae 0x4050df
push 0x124
push 0
push esi
call fcn.0043e820
mov eax, dword [esp + 0x24]
mov dword [esi + 0x64], eax
mov dword [esi + 0x54], eax
mov eax, dword [esp + 0x28]
add esp, 0xc
mov dword [esi], 0xffffffff
mov dword [esi + 0x58], eax
jmp 0x4056f5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x6c]
push ecx
mov dword [esi + 0x64], eax
mov dword [esi + 0x54], eax
push edx
mov dword [esi], 0
mov eax, dword [ebx + 0x838]
mov ecx, dword [ebx + 0x834]
mov edx, dword [ebx + 0x8bc]
push eax
push ecx
push edx
lea eax, [esp + 0x130]
push eax
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x188]
call fcn.00402710
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx*4 + 0x4939e0]
mov ecx, dword [ebx + 0x894]
mov dword [esp + 0x1c0], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x4c]
add ecx, eax
mov dword [esp + 0x100], edx
mov edx, dword [ebx + 0x898]
add edx, eax
add ecx, edi
mov dword [esp + 0xd4], ecx
mov ecx, dword [ebx + 0x89c]
add ecx, eax
add edx, edi
mov dword [esp + 0xd8], edx
mov edx, dword [ebx + 0x8a0]
add edx, eax
add ecx, edi
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0x134]
add edx, edi
mov dword [esp + 0xe0], edx
lea edx, [ecx + ecx]
mov ecx, dword [esp + 0x138]
mov eax, 0x493f10
sub eax, edx
movsx eax, word [eax]
lea edx, [ecx + ecx]
mov ecx, 0x493f10
sub ecx, edx
movsx edx, word [ecx]
mov ecx, dword [esi + 0x64]
add eax, edx
imul eax, ecx
imul eax, dword [esp + 0x100]
shr eax, 0xa
add eax, ecx
mov dword [esp + 0x164], eax
mov dword [esp + 0x160], eax
xor eax, eax
lea edx, [esp + 0x164]
mov dword [esp + 0x178], edx
mov edx, dword [ebx + 0x868]
add edx, dword [esp + 0x4c]
mov dword [esp + 0x10c], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x17c], eax
lea eax, [esp + 0x108]
lea ecx, [esp + 0x134]
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x15c], ecx
mov ecx, dword [esp + 0xc4]
add esp, 0x18
add edx, edi
mov dword [esp + 0x1ac], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x1b0], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x1b4], edx
lea edx, [eax + ecx]
add edx, dword [ebx + 0x86c]
add eax, ecx
add eax, dword [ebx + 0x870]
mov dword [esp + 0x1b8], edx
mov dword [esp + 0x1bc], eax
mov eax, dword [esp + 0x1c]
shl eax, 7
cmp dword [esp + 0x18], eax
ja 0x4052d7
mov ecx, dword [ebx + 0xb28]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x58]
push edx
lea eax, [esp + 0xc0]
push eax
call fcn.00414c40
add esp, 0xc
test eax, eax
je 0x4052d7
push 0x124
push 0
push esi
call fcn.0043e820
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add esp, 0xc
mov dword [esi + 0x64], eax
mov dword [esi + 0x54], eax
mov dword [esi], 0xffffffff
mov dword [esi + 0x58], ecx
jmp 0x4056f5
mov ecx, dword [ebx + 0x93c]
mov esi, dword [ebx + 0x82c]
mov edx, dword [ebx + 0x830]
add ecx, 4
mov eax, 1
shl eax, cl
sub esi, edi
lea esi, [esi + esi - 0x20]
mov dword [esp + 0xcc], esi
lea ecx, [eax - 1]
neg eax
cmp ecx, esi
jg 0x405310
mov dword [esp + 0xcc], ecx
sub edx, dword [esp + 0x24]
lea edx, [edx + edx - 0x20]
cmp ecx, edx
mov dword [esp + 0xd4], edx
jg 0x40532a
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x50]
add ecx, ecx
cmp eax, ecx
mov dword [esp + 0xd0], eax
jg 0x405342
mov dword [esp + 0xd0], ecx
mov ecx, dword [esp + 0x48]
add ecx, ecx
cmp eax, ecx
mov dword [esp + 0xd8], eax
jg 0x40535a
mov dword [esp + 0xd8], ecx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov esi, dword [ebx + 0x834]
mov edi, dword [esp + 0x4c]
lea edx, [esp + 0xb8]
push edx
call fcn.004145b0
add esp, 4
lea eax, [esp + 0xb8]
call fcn.004148d0
mov eax, dword [ebx + 0xb38]
push eax
lea eax, [esp + 0xbc]
call fcn.004142b0
mov esi, dword [esp + 0x40]
add esp, 4
cmp dword [esi + 0x5c], 0
jne 0x405786
mov ecx, dword [esp + 0x160]
cmp dword [ecx], 0x800
jl 0x405786
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40578a
cmp dword [esp + 0x48], 0
je 0x40578a
mov edx, dword [ebx + 0x82c]
sub edx, 0x10
cmp eax, edx
jge 0x40578a
mov ecx, dword [ebx + 0x830]
sub ecx, 0x10
cmp dword [esp + 0x24], ecx
jge 0x40578a
mov edx, dword [esp + 0x1c]
lea ecx, [edx*4 + 0x493a60]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x1c4]
lea edx, [esp + 0x150]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x30], edx
lea edx, [esi + 8]
mov ecx, esi
neg ecx
mov dword [esp + 0x20], edx
lea edx, [esp + ecx + 0xf0]
lea ecx, [esp + ecx + 0x11c]
mov dword [esp + 0x168], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x88], ecx
jmp 0x405460
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
mov edi, dword [ebx + 0x834]
mov ebx, dword [esp + 0x4c]
push edx
push ecx
push eax
lea esi, [esp + 0xc4]
call fcn.00414490
mov ecx, dword [esp + 0x24]
xor edx, edx
mov eax, ecx
mov esi, 2
div esi
mov esi, dword [esp + 0x34]
mov edi, dword [ebp + 8]
add esp, 0xc
lea esi, [esi + edx*8]
mov edx, dword [esp + 0x24]
lea eax, [edx + eax*8]
mov edx, dword [esp + 0x88]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x20]
lea ebx, [edx + eax]
mov edx, dword [edi + 0x834]
mov eax, dword [esp + 0x4c]
push edx
push eax
mov eax, dword [esp + 0x74]
mov edx, ecx
mov ecx, dword [esp + 0x64]
call fcn.00402480
mov dword [ebx], eax
mov eax, dword [esp + 0x4c]
imul eax, dword [esp + 0x1c]
mov dword [ebx + 4], edx
mov edx, dword [ebp + 0xc]
lea ecx, [eax + esi]
add ecx, dword [edx]
mov edx, dword [esp + 0x60]
mov dword [esp + 0xc0], ecx
mov ecx, dword [edi + 0x894]
add ecx, eax
add ecx, esi
mov dword [edx - 4], ecx
mov dword [esp + 0xc4], ecx
mov ecx, dword [edi + 0x898]
add ecx, eax
add ecx, esi
mov dword [edx], ecx
mov dword [esp + 0xc8], ecx
mov ecx, dword [edi + 0x89c]
add ecx, eax
add ecx, esi
mov dword [edx + 4], ecx
mov dword [esp + 0xcc], ecx
mov ecx, dword [edi + 0x8a0]
add ecx, eax
lea eax, [ecx + esi]
mov dword [edx + 8], eax
mov edx, dword [esp + 0x48]
mov ecx, dword [edx]
mov edx, dword [esp + 0x34]
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0x38]
mov dword [eax], 0x7fffffff
mov dword [esp + 0xf4], ecx
mov ecx, dword [esp + 0x28]
add edx, ecx
mov ecx, dword [edi + 0x93c]
mov dword [esp + 0x168], eax
add ecx, 4
mov eax, 1
shl eax, cl
add esp, 8
mov dword [esp + 0x118], edx
mov edx, dword [edi + 0x82c]
mov dword [esp + 0x144], ebx
mov ebx, dword [edi + 0x830]
lea ecx, [eax - 1]
neg eax
sub edx, esi
lea edx, [edx + edx - 0x10]
cmp ecx, edx
mov dword [esp + 0xcc], edx
jg 0x4055b4
mov dword [esp + 0xcc], ecx
mov edx, dword [esp + 0x44]
sub ebx, edx
lea ebx, [ebx + ebx - 0x10]
cmp ecx, ebx
mov dword [esp + 0xd4], ebx
jg 0x4055d0
mov dword [esp + 0xd4], ecx
neg esi
add esi, esi
cmp eax, esi
mov dword [esp + 0xd0], eax
jg 0x4055e6
mov dword [esp + 0xd0], esi
neg edx
add edx, edx
cmp eax, edx
mov dword [esp + 0xd8], eax
jg 0x4055fc
mov dword [esp + 0xd8], edx
lea eax, [esp + 0xb8]
call fcn.00414650
mov edx, dword [edi + 0xb38]
push edx
lea eax, [esp + 0xbc]
call fcn.004143a0
mov eax, dword [esp + 0x11c]
mov ecx, dword [eax]
mov eax, dword [esp + 0x24]
add dword [esp + 0x5c], 0x10
add dword [esp + 0x34], 4
mov dword [eax - 4], ecx
mov edx, dword [esp + 0x11c]
mov ecx, dword [edx + 4]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
add eax, 8
add ecx, 1
add esp, 4
cmp ecx, 4
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x18], ecx
mov ebx, edi
jl 0x405460
mov esi, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
add edx, ecx
add edx, eax
mov dword [esp + 0xb8], edx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x1ac], edx
mov edx, dword [esp + 0xac]
mov dword [esp + 0x1b0], edx
mov edx, dword [ebx + 0x868]
add edx, ecx
mov ecx, dword [esp + 0x60]
add edx, eax
mov dword [esp + 0x1b4], edx
mov edx, dword [esp + 0x38]
lea edi, [edx + ecx]
add edi, dword [ebx + 0x86c]
add edx, ecx
mov ecx, dword [esp + 0x24]
add edx, dword [ebx + 0x870]
push ecx
mov dword [esp + 0x1bc], edi
push eax
lea edi, [esp + 0xc0]
mov dword [esp + 0x1c4], edx
call fcn.00414f80
mov eax, dword [esi]
add esp, 8
cmp eax, 0xffffffff
jne 0x4057fe
mov esi, dword [esp + 0x3c]
mov eax, dword [ebx + 0x868]
add eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
add eax, dword [esp + 0x28]
lea edi, [ebx + 0x780]
lea edx, [eax + 8]
mov dword [esp + 0x74], edx
lea edx, [eax + ecx*8]
mov ecx, dword [esp + 0x90]
add ecx, eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x78], edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x10]
push ecx
add eax, edx
add eax, dword [ebx + 0x86c]
push 8
push eax
push edi
call dword [0x4ae894]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x20]
push ecx
add eax, edx
add eax, dword [ebx + 0x870]
push 8
mov dword [esp + 0x98], edi
push eax
lea edi, [ebx + 0x7c0]
push edi
call dword [0x4ae894]
add esp, 0x20
mov dword [esp + 0x84], edi
jmp 0x405ca5
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebx + 0x894]
add edx, ecx
add edx, eax
mov dword [esp + 0x1c0], edx
mov dword [esp + 0xbc], edx
mov edx, dword [ebx + 0x898]
add edx, ecx
add edx, eax
mov dword [esp + 0x1c4], edx
mov dword [esp + 0xc0], edx
mov edx, dword [ebx + 0x89c]
add edx, ecx
add edx, eax
mov dword [esp + 0x1c8], edx
mov dword [esp + 0xc4], edx
mov edx, dword [ebx + 0x8a0]
add edx, ecx
add edx, eax
mov dword [esp + 0x168], 0
mov dword [esp + 0x1cc], edx
mov dword [esp + 0xc8], edx
jmp 0x40566d
test eax, eax
je 0x405b1f
cmp eax, 1
je 0x405b1f
cmp eax, 2
jne 0x405ca1
mov edx, dword [esp + 0x3c]
mov esi, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov edi, dword [edx + 0x14]
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x30], esi
add esi, eax
add esi, edi
mov dword [esp + 0x88], edi
mov edi, dword [edx + 0x10]
add esi, ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x58], ecx
mov ecx, dword [edx + 0x18]
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0x20]
mov edx, dword [edx + 8]
add edi, edx
add edi, ecx
add edi, eax
mov dword [esp + 0x20], edi
mov edi, esi
and edi, 0xf
movzx edi, word [edi*2 + 0x48f440]
sar esi, 3
add edi, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], edi
mov edi, esi
and edi, 0xf
movzx edi, word [edi*2 + 0x48f440]
sar esi, 3
add edi, esi
mov esi, dword [esp + 0xb4]
add esi, 0xfffffff0
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x28]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x18]
add edi, esi
mov esi, dword [esp + 0x2c]
cmp edi, esi
jle 0x4058b5
mov edi, dword [esp + 0x50]
add esi, edi
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x94]
mov edi, dword [esp + 0x24]
add esi, 0xfffffff0
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x20]
add edi, esi
mov esi, dword [esp + 0x2c]
cmp edi, esi
jle 0x4058df
mov edi, dword [esp + 0x48]
add esi, edi
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x28]
add esi, edi
jns 0x4058f3
mov esi, dword [esp + 0x50]
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
add esi, edi
jns 0x405907
mov esi, dword [esp + 0x48]
mov dword [esp + 0x20], esi
mov edi, dword [esp + 0x44]
mov esi, edx
and esi, 1
sar edx, 1
imul edx, dword [esp + 0x14]
add esi, esi
and edi, 1
or esi, edi
mov esi, dword [esp + esi*4 + 0x1c0]
add esi, edx
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x30]
sar edx, 1
add esi, edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x70], esi
mov esi, edx
sar edx, 1
imul edx, dword [esp + 0x14]
and esi, 1
add esi, esi
and edi, 1
or esi, edi
mov esi, dword [esp + esi*4 + 0x1d0]
add esi, edx
mov edx, dword [esp + 0x30]
sar edx, 1
add esi, edx
mov edx, dword [esp + 0x88]
mov dword [esp + 0x74], esi
mov esi, ecx
and esi, 1
mov edi, edx
add esi, esi
and edi, 1
or esi, edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + esi*4 + 0x1e0]
sar ecx, 1
imul ecx, edi
add esi, ecx
mov ecx, dword [esp + 0x58]
sar edx, 1
add esi, edx
mov edx, eax
sar eax, 1
imul eax, edi
and edx, 1
mov dword [esp + 0x78], esi
mov esi, ecx
add edx, edx
and esi, 1
or edx, esi
mov edx, dword [esp + edx*4 + 0x1f0]
add edx, eax
sar ecx, 1
add edx, ecx
mov ecx, dword [esp + 0x20]
mov esi, ecx
sar esi, 1
add esi, dword [esp + 0xb0]
mov dword [esp + 0x7c], edx
imul esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov eax, edx
sar eax, 1
mov dword [esp + 0x30], eax
add eax, esi
add eax, dword [esp + 0x38]
and ecx, 1
add eax, dword [ebx + 0x86c]
and edx, 1
lea edi, [ecx + edx*2]
mov ecx, edi
sub ecx, 0
je 0x405a45
sub ecx, 1
je 0x405a2e
sub ecx, 1
je 0x405a17
mov ecx, dword [esp + 0x10]
push ecx
push 8
push eax
lea eax, [ebx + 0x780]
push eax
call dword [0x4ae8b4]
jmp 0x405a5a
mov edx, dword [esp + 0x10]
push edx
push 8
push eax
lea eax, [ebx + 0x780]
push eax
call dword [0x4ae8dc]
jmp 0x405a5a
mov ecx, dword [esp + 0x10]
push ecx
push 8
push eax
lea eax, [ebx + 0x780]
push eax
call dword [0x4ae8d8]
jmp 0x405a5a
mov edx, dword [esp + 0x10]
push edx
push 8
push eax
lea eax, [ebx + 0x780]
push eax
call dword [0x4ae894]
lea eax, [ebx + 0x780]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x40]
add esi, eax
add esi, dword [esp + 0x48]
add esp, 0x10
add esi, dword [ebx + 0x870]
sub edi, 0
je 0x405af8
sub edi, 1
je 0x405ad1
sub edi, 1
lea eax, [ebx + 0x7c0]
je 0x405ab0
mov ecx, dword [esp + 0x10]
push ecx
push 8
push esi
push eax
call dword [0x4ae8b4]
lea eax, [ebx + 0x7c0]
mov dword [esp + 0x94], eax
jmp 0x405c9e
mov edx, dword [esp + 0x10]
push edx
push 8
push esi
push eax
call dword [0x4ae8dc]
lea eax, [ebx + 0x7c0]
mov dword [esp + 0x94], eax
jmp 0x405c9e
mov eax, dword [esp + 0x10]
push eax
push 8
lea eax, [ebx + 0x7c0]
push esi
push eax
call dword [0x4ae8d8]
lea eax, [ebx + 0x7c0]
mov dword [esp + 0x94], eax
jmp 0x405c9e
mov ecx, dword [esp + 0x10]
push ecx
push 8
lea eax, [ebx + 0x7c0]
push esi
push eax
call dword [0x4ae894]
lea eax, [ebx + 0x7c0]
mov dword [esp + 0x94], eax
jmp 0x405c9e
mov eax, dword [esp + 0x3c]
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov edx, ecx
mov esi, ecx
sar esi, 1
and edx, 3
movzx edx, word [edx*2 + 0x48f438]
add edx, esi
mov esi, eax
and esi, 3
movzx esi, word [esi*2 + 0x48f438]
mov edi, eax
sar edi, 1
add esi, edi
mov dword [esp + 0x20], esi
mov esi, eax
and esi, 1
add esi, esi
mov edi, ecx
sar eax, 1
and edi, 1
or esi, edi
mov edi, dword [esp + 0x14]
mov esi, dword [esp + esi*4 + 0x1c0]
imul eax, edi
add esi, eax
sar ecx, 1
add esi, ecx
lea eax, [esi + 8]
lea ecx, [esi + edi*8]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x90]
add eax, esi
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x70], esi
mov esi, ecx
sar esi, 1
add esi, dword [esp + 0xb0]
mov dword [esp + 0x7c], eax
imul esi, dword [esp + 0x10]
mov eax, edx
sar eax, 1
mov dword [esp + 0x30], eax
add eax, esi
add eax, dword [esp + 0x38]
and edx, 1
add eax, dword [ebx + 0x86c]
and ecx, 1
lea ecx, [ecx + edx*2]
mov dword [esp + 0x2c], ecx
sub ecx, 0
lea edi, [ebx + 0x780]
je 0x405c13
sub ecx, 1
je 0x405c02
sub ecx, 1
je 0x405bf1
mov ecx, dword [esp + 0x10]
push ecx
push 8
push eax
push edi
call dword [0x4ae8b4]
jmp 0x405c22
mov edx, dword [esp + 0x10]
push edx
push 8
push eax
push edi
call dword [0x4ae8dc]
jmp 0x405c22
mov ecx, dword [esp + 0x10]
push ecx
push 8
push eax
push edi
call dword [0x4ae8d8]
jmp 0x405c22
mov edx, dword [esp + 0x10]
push edx
push 8
push eax
push edi
call dword [0x4ae894]
mov eax, dword [esp + 0x40]
add esi, eax
add esi, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
add esi, dword [ebx + 0x870]
add esp, 0x10
sub eax, 0
mov dword [esp + 0x80], edi
lea edi, [ebx + 0x7c0]
je 0x405c88
sub eax, 1
je 0x405c77
sub eax, 1
je 0x405c66
mov ecx, dword [esp + 0x10]
push ecx
push 8
push esi
push edi
call dword [0x4ae8b4]
jmp 0x405c97
mov edx, dword [esp + 0x10]
push edx
push 8
push esi
push edi
call dword [0x4ae8dc]
jmp 0x405c97
mov eax, dword [esp + 0x10]
push eax
push 8
push esi
push edi
call dword [0x4ae8d8]
jmp 0x405c97
mov ecx, dword [esp + 0x10]
push ecx
push 8
push esi
push edi
call dword [0x4ae894]
mov dword [esp + 0x94], edi
add esp, 0x10
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
cmp eax, 0xffffffff
mov edi, dword [esp + 0x14]
jne 0x405daf
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x98]
push edi
push edi
push edx
push eax
call dword [0x4ae894]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0xac]
push edi
push edi
push ecx
push edx
call dword [0x4ae894]
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0xc0]
push edi
push edi
push eax
push ecx
call dword [0x4ae894]
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xd4]
push edi
push edi
push edx
push eax
call dword [0x4ae894]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xe8]
add esp, 0x40
push 8
push edi
push ecx
push edx
call dword [0x4ae894]
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0xbc]
push 8
push edi
push eax
push ecx
call dword [0x4ae894]
mov eax, dword [ebx + 0x818]
mov edx, dword [ebx + 0x810]
mov dword [esp + 0x60], eax
sar eax, 5
lea eax, [edx + eax*4]
add esp, 0x20
mov dword [esp + 0x2c], eax
mov ecx, 0x20
mov eax, 1
sub ecx, 1
shl eax, cl
mov ecx, dword [esp + 0x40]
xor edx, edx
and ecx, 0x1f
shrd edx, eax, cl
shr eax, cl
bswap edx
mov ecx, dword [esp + 0x2c]
bswap eax
mov dword [ecx + 4], edx
or dword [ecx], eax
mov eax, dword [esp + 0x68]
add dword [ebx + 0x818], 1
mov dword [esp + 0x64], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], 0
jmp 0x405e7f
cmp eax, 3
je 0x405e16
cmp eax, 4
je 0x405e16
mov ecx, dword [ebx + 0xb28]
mov edx, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x58]
push edx
lea eax, [esp + 0xa0]
push eax
push ebx
push ecx
mov eax, edi
lea ecx, [esp + 0x84]
call fcn.00415e90
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x68]
add esp, 0x14
push eax
push edx
mov dword [esi + 0x60], eax
push edi
lea eax, [esp + 0xa4]
push eax
push ebx
push ecx
lea ecx, [esp + 0x88]
call fcn.00416590
add esp, 0x18
mov eax, esi
mov ecx, ebx
call fcn.00404990
jmp 0x405e7f
mov edx, dword [ebx + 0xb28]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
push edx
push ebx
mov ebx, dword [esp + 0x5c]
push ebx
lea ecx, [esp + 0xa4]
call fcn.00415b00
mov eax, dword [esp + 0x20]
add esp, 0xc
push eax
push ebx
mov eax, edi
mov edi, dword [ebp + 8]
lea ebx, [esp + 0xa0]
call fcn.004163a0
mov ecx, dword [edi + 0x834]
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [edi + 0x8b8]
push edx
mov edx, dword [esp + 0x64]
push eax
call fcn.00413ec0
add esp, 0x14
mov eax, esi
mov ecx, edi
call fcn.00404990
mov ebx, edi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x64]
sub dword [esp + 0x50], 0x10
add eax, 0x10
cmp eax, dword [ebx + 0x82c]
mov dword [esp + 0x68], ecx
mov dword [esp + 0x28], eax
jl 0x404f70
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x8c]
add dword [esp + 0x34], edx
sub dword [esp + 0x48], 0x10
add eax, 0x10
cmp eax, dword [ebx + 0x830]
mov dword [esp + 0x24], eax
jl 0x404f1a
mov eax, dword [ebx + 0x818]
mov ecx, eax
and ecx, 0x80000007
jns 0x405edf
dec ecx
or ecx, 0xfffffff8
inc ecx
mov edx, dword [ebx + 0x810]
mov dword [esp + 0x2c], eax
mov esi, 8
sar eax, 5
sub esi, ecx
lea eax, [edx + eax*4]
mov dword [esp + 0x40], esi
mov dword [esp + 0x94], eax
mov ecx, 0x20
mov eax, 0
sub ecx, dword [esp + 0x40]
shl eax, cl
mov ecx, dword [esp + 0x2c]
xor edx, edx
and ecx, 0x1f
shrd edx, eax, cl
shr eax, cl
bswap edx
mov ecx, dword [esp + 0x94]
bswap eax
mov dword [ecx + 4], edx
or dword [ecx], eax
add dword [ebx + 0x818], esi
mov eax, dword [ebx + 0x818]
add eax, 7
cdq
and edx, 7
pop edi
add eax, edx
pop esi
sar eax, 3
pop ebx
mov esp, ebp
pop ebp
ret