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

Disassembly:
sub esp, 0x1dc
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1ec]
push edi
xor ebx, ebx
mov ebp, dword [esi + 0x834]
mov ecx, dword [esi + 0x2964]
mov eax, ebp
mov edx, dword [esi + 0x28c0]
sar eax, 1
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x838]
mov dword [esp + 0x94], eax
mov dword [esp + 0x3c], ecx
mov ecx, 0x42
xor eax, eax
lea edi, [esp + 0xa4]
mov dword [esp + 0xa0], ebx
rep stosd dword es:[edi], eax
push esi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x94], ebp
mov dword [esp + 0x48], edx
call fcn.00412510
push esi
mov dword [esi + 0x2944], 1
call fcn.00412550
add esp, 8
call dword [0x4de49c]
mov eax, dword [esi + 0x870]
mov dword [esp + 0x20], ebx
mov dword [esi + 0x89c], eax
mov eax, dword [esi + 0x838]
cmp eax, ebx
jle 0x4153b0
mov eax, dword [esi + 0x834]
mov ecx, ebp
shl ecx, 4
mov dword [esp + 0x4c], ecx
xor edi, edi
test eax, eax
jle 0x415391
mov ecx, dword [esi + 0x89c]
mov edx, dword [esi + 0x8a0]
add ecx, ebx
add edx, ebx
push ebp
add ecx, edi
push ebp
add edx, edi
push ecx
push edx
call dword [0x4dcaac]
mov eax, dword [esi + 0x89c]
push ebp
add eax, ebx
push ebp
add eax, edi
lea ecx, [ebx + edi]
push eax
mov eax, dword [esi + 0x8a4]
add ecx, eax
push ecx
call dword [0x4dcaa4]
mov edx, dword [esi + 0x89c]
mov eax, dword [esi + 0x8a8]
add edx, ebx
add eax, ebx
push ebp
add edx, edi
push ebp
add eax, edi
push edx
push eax
call dword [0x4dca78]
mov eax, dword [esi + 0x834]
add edi, 0x10
add esp, 0x30
cmp edi, eax
jl 0x415326
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x4c]
mov edx, dword [esi + 0x838]
add ecx, 0x10
add ebx, edi
cmp ecx, edx
mov dword [esp + 0x20], ecx
jl 0x415320
mov ecx, dword [esi + 0x838]
mov eax, dword [esi + 0x834]
test ecx, ecx
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0x20], 0
jle 0x416092
xor ecx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x18]
shl ecx, 4
mov dword [esp + 0x98], ecx
xor ebx, ebx
test eax, eax
jle 0x41605d
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], ebx
mov eax, ecx
sar eax, 1
mov dword [esp + 0x8c], eax
imul eax, dword [esp + 0x10]
sar ecx, 4
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x1f4]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x48]
mov eax, dword [ecx]
push edx
add eax, edi
add eax, ebx
mov dword [esp + 0x78], eax
lea ebp, [eax + 8]
mov dword [esp + 0x7c], ebp
mov ebp, dword [esp + 0x1c]
lea ebp, [eax + ebp*8]
mov dword [esp + 0x80], ebp
mov ebp, dword [esp + 0x1c]
lea eax, [eax + ebp*8 + 8]
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x84], eax
mov eax, ebx
sar eax, 1
mov dword [esp + 0x44], eax
add eax, ebp
mov ebp, dword [ecx + 4]
mov ecx, dword [ecx + 8]
add ebp, eax
add ecx, eax
mov eax, dword [esi + 0x83c]
mov dword [esp + 0x8c], ecx
imul eax, edx
mov ecx, ebx
mov dword [esp + 0x88], ebp
sar ecx, 4
add eax, ecx
mov dword [esp + 0x50], ecx
push ecx
lea ebp, [eax + eax*8]
lea ebp, [eax + ebp*2]
lea eax, [eax + ebp*4]
mov ebp, dword [esp + 0x4c]
lea ebp, [ebp + eax*4]
mov dword [ebp], 0
mov eax, dword [esi + 0x2964]
mov dword [ebp + 0x58], eax
mov ecx, dword [esi + 0x840]
mov eax, dword [esi + 0x83c]
mov edx, dword [esi + 0x28c4]
push ecx
push eax
mov eax, dword [esp + 0x54]
push edx
lea ecx, [esp + 0x170]
push eax
lea edx, [esp + 0x120]
push ecx
push edx
call fcn.004118f0
mov ecx, dword [esi + 0x89c]
mov edx, dword [esi + 0x8a0]
add ecx, edi
mov dword [esp + 0x1b4], eax
mov eax, dword [esp + 0x94]
add ecx, ebx
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], ecx
mov ecx, dword [esi + 0x8a4]
lea eax, [edi + ebx]
add edx, edi
add eax, ecx
mov ecx, dword [esi + 0x8a8]
add edx, ebx
add ecx, edi
add esp, 0x20
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x3c]
add ecx, ebx
mov dword [esp + 0xac], eax
mov eax, dword [edx*4 + 0x47c1a0]
mov dword [esp + 0xb0], ecx
lea ecx, [esp + 0xdc]
mov dword [esp + 0x138], CreateStatusWindowA
mov dword [esp + 0xd0], eax
mov dword [esp + 0x104], ecx
mov ecx, dword [esi + 0x2968]
lea eax, [esp + 0x138]
mov dword [esp + 0x14c], eax
add ecx, 4
mov eax, 1
lea edx, [esp + 0x108]
shl eax, cl
mov dword [esp + 0x130], edx
mov edx, dword [esi + 0x838]
lea ecx, [eax - 1]
neg eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x834]
sub eax, ebx
mov dword [esp + 0xb4], ecx
lea eax, [eax + eax - 0x20]
cmp ecx, eax
jl 0x4155d0
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xbc], ecx
sub edx, eax
lea eax, [edx + edx - 0x20]
cmp ecx, eax
jl 0x4155ec
mov dword [esp + 0xbc], eax
mov ecx, dword [esp + 0x30]
lea eax, [ecx + ecx]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov dword [esp + 0xb8], ecx
jg 0x415609
mov dword [esp + 0xb8], eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 0xc0], ecx
lea eax, [edx + edx]
cmp ecx, eax
jg 0x415622
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x44]
push 0
push eax
mov eax, dword [esi + 0x83c]
push ebx
push eax
lea edx, [esp + 0xb0]
push ecx
push edx
call fcn.00432180
push 0
lea eax, [esp + 0xbc]
push 0
push eax
mov dword [esp + 0xfc], 0x431c30
call fcn.00432830
mov ecx, dword [esp + 0x128]
lea edx, [esp + 0xc4]
push ecx
push edx
mov dword [esp + 0x160], eax
mov dword [esp + 0x104], 0x431ce0
call fcn.00432350
mov eax, dword [esp + 0x178]
add esp, 0x2c
cmp dword [eax], 0x5dc
jl 0x4156cd
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4156cd
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4156cd
mov ecx, dword [esi + 0x834]
sub ecx, 0x10
cmp ebx, ecx
jge 0x4156cd
mov edx, dword [esi + 0x838]
mov eax, dword [esp + 0x20]
sub edx, 0x10
cmp eax, edx
jge 0x4156cd
mov ecx, 1
jmp 0x415730
mov eax, dword [esi + 0x89c]
mov edx, dword [esi + 0x8a4]
add eax, edi
xor ecx, ecx
add eax, ebx
mov dword [esp + 0x1ac], eax
mov dword [esp + 0xa4], eax
mov eax, dword [esi + 0x8a0]
add eax, edi
add eax, ebx
mov dword [esp + 0x1b0], eax
mov dword [esp + 0xa8], eax
lea eax, [edi + ebx]
add eax, edx
mov dword [esp + 0x1b4], eax
mov dword [esp + 0xac], eax
mov eax, dword [esi + 0x8a8]
add eax, edi
add eax, ebx
mov dword [esp + 0x1b8], eax
mov dword [esp + 0xb0], eax
test ecx, ecx
mov dword [esp + 0x154], ecx
mov dword [esp + 0x1c], 0
je 0x4159ec
lea eax, [esp + 0x13c]
lea ecx, [esp + 0x1b0]
mov dword [esp + 0x14], eax
mov eax, ebp
neg eax
lea edx, [ebp + 8]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x24], edx
lea ecx, [esp + eax + 0xdc]
lea edx, [esp + eax + 0x108]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x9c], edx
mov ecx, 4
mov eax, dword [esp + 0x1c]
cmp eax, ecx
jge 0x4159ec
mov ecx, dword [esi + 0x83c]
mov edx, dword [esp + 0x44]
mov edi, eax
mov eax, dword [esp + 0x20]
push edi
push eax
push ebx
push ecx
lea eax, [esp + 0xb0]
push edx
push eax
call fcn.00432050
and edi, 0x80000001
jns 0x4157c1
dec edi
or edi, 0xfffffffe
inc edi
mov ecx, dword [esp + 0x34]
lea edi, [ebx + edi*8]
mov eax, ecx
push ecx
cdq
sub eax, edx
mov edx, dword [esp + 0x3c]
sar eax, 1
mov ecx, dword [esp + 0x64]
lea eax, [edx + eax*8]
mov edx, dword [esp + 0xb8]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
add edx, eax
mov eax, dword [esi + 0x83c]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push 0
push eax
push ecx
call fcn.00411240
mov ecx, dword [esp + 0x68]
add esp, 0x30
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
imul eax, dword [esp + 0x18]
mov dword [ecx + 4], edx
mov ecx, dword [esp + 0x1f4]
lea edx, [eax + edi]
add edx, dword [ecx]
mov dword [esp + 0xa0], edx
mov edx, dword [esi + 0x89c]
add edx, eax
lea ecx, [edx + edi]
mov edx, dword [esp + 0x54]
mov dword [esp + 0xa4], ecx
mov dword [edx - 4], ecx
mov ecx, dword [esi + 0x8a0]
add ecx, eax
add ecx, edi
mov dword [edx], ecx
mov dword [esp + 0xa8], ecx
mov ecx, dword [esi + 0x8a4]
lea edx, [eax + edi]
add ecx, edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0xac], ecx
mov dword [edx + 4], ecx
mov ecx, dword [esi + 0x8a8]
add ecx, eax
lea eax, [ecx + edi]
mov dword [edx + 8], eax
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [edx*4 + 0x47c220]
mov edx, dword [esp + 0x70]
mov dword [eax], 0x7fffffff
mov dword [esp + 0xd4], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14c], eax
add edx, ecx
mov ecx, dword [esi + 0x2968]
add ecx, 4
mov eax, 1
shl eax, cl
mov dword [esp + 0x104], edx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x130], edx
mov edx, dword [esi + 0x838]
lea ecx, [eax - 1]
neg eax
mov dword [esp + 0x38], eax
mov eax, dword [esi + 0x834]
sub eax, edi
mov dword [esp + 0xb4], ecx
lea eax, [eax + eax - 0x10]
cmp ecx, eax
jl 0x415907
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xbc], ecx
sub edx, eax
lea eax, [edx + edx - 0x10]
cmp ecx, eax
jl 0x415923
mov dword [esp + 0xbc], eax
mov ecx, dword [esp + 0x38]
neg edi
add edi, edi
mov dword [esp + 0xb8], ecx
cmp ecx, edi
jg 0x41593d
mov dword [esp + 0xb8], edi
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc0], ecx
neg eax
add eax, eax
cmp ecx, eax
jg 0x415957
mov dword [esp + 0xc0], eax
push 0
lea ecx, [esp + 0xa4]
push 0
push ecx
mov dword [esp + 0xe4], 0x431e40
call fcn.00432410
mov edx, dword [esp + 0x110]
lea eax, [esp + 0xac]
push edx
push eax
mov dword [esp + 0xec], 0x431ef0
call fcn.00432350
mov ecx, dword [esp + 0x118]
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x28]
add eax, 8
mov edx, dword [ecx]
mov dword [esp + 0x38], eax
mov dword [eax - 0xc], edx
mov ecx, dword [esp + 0x118]
add esp, 0x14
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x54]
mov dword [eax - 8], edx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x154]
add ecx, 0x10
mov dword [esp + 0x54], ecx
mov ecx, 4
inc edx
add edi, ecx
test eax, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
jne 0x415786
mov eax, dword [esp + 0x1f4]
mov edx, dword [esp + 0x84]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x198], edx
mov ecx, dword [eax]
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 0x870]
add ecx, eax
add eax, ebx
add ecx, ebx
add eax, edx
mov dword [esp + 0xa0], ecx
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x1a0], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x19c], ecx
mov ecx, dword [esi + 0x874]
lea edx, [edi + eax]
add edx, ecx
mov ecx, dword [esi + 0x878]
mov dword [esp + 0x1a4], edx
mov edx, dword [esp + 0x20]
add ecx, edi
push edx
add ecx, eax
lea eax, [esi + 0x300]
push ebx
push eax
lea eax, [esp + 0xac]
mov dword [esp + 0x1b4], ecx
push eax
push ebp
call fcn.004317d0
mov eax, dword [ebp]
add esp, 0x14
cmp eax, 0xffffffff
jne 0x415b0c
mov ecx, dword [esp + 0x34]
lea eax, [ecx + ebx]
mov ecx, dword [esi + 0x870]
add eax, ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x58], eax
lea edx, [eax + 8]
mov dword [esp + 0x5c], edx
lea edx, [eax + ecx*8]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x50]
lea eax, [eax + ecx*8 + 8]
lea ecx, [esi + 0x784]
mov dword [esp + 0x64], eax
lea eax, [edi + edx]
mov edx, dword [esi + 0x874]
add eax, edx
mov edx, dword [esp + 0x10]
push edx
push 8
push eax
push ecx
call dword [0x4dcb68]
mov edx, dword [esp + 0x60]
lea eax, [esi + 0x784]
mov dword [esp + 0x78], eax
mov eax, dword [esi + 0x878]
add eax, edi
lea ecx, [esi + 0x7c4]
add eax, edx
mov edx, dword [esp + 0x20]
push edx
push 8
push eax
push ecx
call dword [0x4dcb68]
add esp, 0x20
jmp 0x415e66
test eax, eax
jne 0x415c20
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 8]
mov edx, ecx
mov dword [esp + 0x24], ecx
and edx, 3
sar ecx, 1
mov edi, dword [edx*4 + 0x4773b8]
mov edx, eax
add ecx, edi
mov edi, eax
and edi, 3
sar edx, 1
add edx, dword [edi*4 + 0x4773b8]
mov edi, dword [esp + 0x24]
and edi, 1
mov dword [esp + 0x1c], edx
mov edx, eax
and edx, 1
add edx, edx
or edx, edi
mov edi, dword [esp + 0x18]
sar eax, 1
imul eax, edi
mov edx, dword [esp + edx*4 + 0x1ac]
add edx, eax
mov eax, dword [esp + 0x24]
sar eax, 1
add edx, eax
mov dword [esp + 0x58], edx
lea eax, [edx + 8]
mov dword [esp + 0x5c], eax
lea eax, [edx + edi*8]
lea edx, [edx + edi*8 + 8]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x8c]
sar edi, 1
add edi, eax
mov eax, ecx
imul edi, dword [esp + 0x10]
sar eax, 1
mov dword [esp + 0x64], edx
mov edx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
add eax, edi
add eax, edx
mov edx, dword [esi + 0x874]
add eax, edx
mov edx, dword [esp + 0x1c]
and ecx, 1
and edx, 1
lea ecx, [edx + ecx*2]
mov dword [esp + 0x28], ecx
sub ecx, 0
je 0x415dca
dec ecx
je 0x415c06
dec ecx
je 0x415bec
mov ecx, dword [esp + 0x10]
push ecx
push 8
push eax
lea eax, [esi + 0x784]
push eax
call dword [0x4dca90]
jmp 0x415ddf
mov edx, dword [esp + 0x10]
push edx
push 8
push eax
lea eax, [esi + 0x784]
push eax
call dword [0x4dcab0]
jmp 0x415ddf
mov ecx, dword [esp + 0x10]
push ecx
push 8
push eax
lea eax, [esi + 0x784]
push eax
call dword [0x4dcab8]
jmp 0x415ddf
cmp eax, 2
jne 0x415e70
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
add ecx, eax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
add ecx, edx
mov edx, dword [ebp + 0x18]
add ecx, eax
mov eax, dword [ebp + 8]
add edx, eax
add edx, edi
mov edi, dword [ebp + 0x10]
add edx, edi
mov edi, ecx
and edi, 0xf
sar ecx, 3
add ecx, dword [edi*4 + 0x4773c8]
mov edi, edx
and edi, 0xf
sar edx, 3
add edx, dword [edi*4 + 0x4773c8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x90]
lea edi, [edx - 0x10]
lea edx, [ecx + ebx]
cmp edx, edi
jle 0x415c92
mov ecx, dword [esp + 0x30]
add ecx, edi
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x94]
mov edi, dword [esp + 0x20]
add edx, 0xfffffff0
mov dword [esp + 0x70], edx
mov edx, dword [esp + 0x1c]
add edi, edx
mov edx, dword [esp + 0x70]
cmp edi, edx
jle 0x415cbc
mov edi, dword [esp + 0x2c]
add edx, edi
mov dword [esp + 0x1c], edx
add ecx, ebx
test ecx, ecx
jge 0x415cca
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add ecx, edx
test ecx, ecx
jge 0x415ce0
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x24]
mov edx, eax
sar eax, 1
imul eax, dword [esp + 0x18]
and edx, 1
mov edi, ecx
add edx, edx
and edi, 1
or edx, edi
sar ecx, 1
mov edx, dword [esp + edx*4 + 0x1ac]
add edx, eax
add edx, ecx
mov dword [esp + 0x58], edx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov ecx, eax
sar eax, 1
imul eax, dword [esp + 0x18]
and ecx, 1
mov edx, edi
add ecx, ecx
and edx, 1
or ecx, edx
sar edi, 1
mov ecx, dword [esp + ecx*4 + 0x1bc]
add ecx, eax
add ecx, edi
mov dword [esp + 0x5c], ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
mov edx, eax
sar eax, 1
imul eax, dword [esp + 0x18]
and edx, 1
mov edi, ecx
add edx, edx
and edi, 1
or edx, edi
sar ecx, 1
mov edx, dword [esp + edx*4 + 0x1cc]
add edx, eax
add edx, ecx
mov dword [esp + 0x60], edx
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
mov edx, eax
sar eax, 1
imul eax, dword [esp + 0x18]
and edx, 1
mov edi, ecx
add edx, edx
and edi, 1
or edx, edi
sar ecx, 1
mov edx, dword [esp + edx*4 + 0x1dc]
add edx, eax
mov eax, dword [esp + 0x8c]
add edx, ecx
mov ecx, dword [esp + 0x1c]
mov edi, ecx
mov dword [esp + 0x64], edx
sar edi, 1
mov edx, dword [esp + 0x14]
add edi, eax
imul edi, dword [esp + 0x10]
mov eax, edx
and edx, 1
sar eax, 1
mov dword [esp + 0x14], eax
add eax, edi
add eax, dword [esp + 0x40]
add eax, dword [esi + 0x874]
and ecx, 1
lea ecx, [ecx + edx*2]
jmp 0x415bbf
mov edx, dword [esp + 0x10]
push edx
push 8
push eax
lea eax, [esi + 0x784]
push eax
call dword [0x4dcb68]
lea eax, [esi + 0x784]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x24]
add edi, eax
mov eax, dword [esi + 0x878]
add edi, eax
mov eax, dword [esp + 0x38]
add esp, 0x10
add edi, edx
sub eax, 0
je 0x415e4e
dec eax
je 0x415e37
dec eax
lea eax, [esi + 0x7c4]
je 0x415e26
mov ecx, dword [esp + 0x10]
push ecx
push 8
push edi
push eax
call dword [0x4dca90]
jmp 0x415e63
mov edx, dword [esp + 0x10]
push edx
push 8
push edi
push eax
call dword [0x4dcab0]
jmp 0x415e63
mov eax, dword [esp + 0x10]
push eax
push 8
lea eax, [esi + 0x7c4]
push edi
push eax
call dword [0x4dcab8]
jmp 0x415e63
mov ecx, dword [esp + 0x10]
lea eax, [esi + 0x7c4]
push ecx
push 8
push edi
push eax
call dword [0x4dcb68]
add esp, 0x10
lea eax, [esi + 0x7c4]
mov dword [esp + 0x6c], eax
mov eax, dword [ebp]
cmp eax, 0xffffffff
jne 0x415f15
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x74]
push edi
push edi
push edx
push eax
call dword [0x4dcb68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x88]
push edi
push edi
push ecx
push edx
call dword [0x4dcb68]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x9c]
push edi
push edi
push eax
push ecx
call dword [0x4dcb68]
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0xb0]
push edi
push edi
push edx
push eax
call dword [0x4dcb68]
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xc4]
add esp, 0x40
push 8
push edi
push ecx
push edx
call dword [0x4dcb68]
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x98]
push 8
push edi
push eax
push ecx
call dword [0x4dcb68]
add esp, 0x20
jmp 0x416028
cmp eax, 3
jne 0x415f7b
mov edx, dword [esi + 0x2964]
mov eax, dword [esp + 0x18]
push edx
lea ecx, [esp + 0x78]
push eax
push ecx
lea edi, [esi + 0x300]
push esi
push edi
call fcn.00431220
mov edx, dword [ebp + 0x60]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x2c]
push edx
push eax
lea edx, [esp + 0x90]
push ecx
push edx
push esi
push edi
call fcn.00431540
mov eax, dword [esi + 0x83c]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x78]
push edi
push eax
mov eax, dword [esi + 0x28c0]
push ecx
push edx
push eax
call fcn.00430f90
add esp, 0x40
jmp 0x416028
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x18]
push ecx
lea eax, [esp + 0x5c]
push edx
lea ecx, [esp + 0x7c]
push eax
push ecx
lea eax, [esi + 0x300]
push esi
push eax
call fcn.00431370
mov ecx, dword [ebp]
add esp, 0x18
cmp ecx, 0xffffffff
mov dword [ebp + 0x60], eax
je 0x415feb
cmp ecx, 3
je 0x415ffd
test eax, eax
jne 0x415ffd
mov eax, dword [ebp + 4]
test eax, eax
jne 0x415ffd
mov eax, dword [ebp + 8]
test eax, eax
jne 0x415ffd
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x415ffd
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x415ffd
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x415ffd
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x415ffd
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x415ffd
mov eax, dword [ebp + 0x20]
test eax, eax
jne 0x415ffd
mov ecx, 0x4d
xor eax, eax
mov edi, ebp
rep stosd dword es:[edi], eax
mov dword [ebp], 0xffffffff
mov edx, dword [ebp + 0x60]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
push edx
push eax
lea edx, [esp + 0x60]
push ecx
lea eax, [esp + 0x80]
push edx
push eax
lea eax, [esi + 0x300]
push esi
push eax
call fcn.004316a0
add esp, 0x1c
mov eax, dword [ebp]
push ebp
cmp eax, 0xffffffff
push esi
jne 0x416039
call fcn.00412de0
jmp 0x41603e
call fcn.00412e80
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x834]
add ebx, 0x10
add esp, 8
sub edx, 0x10
cmp ebx, eax
mov dword [esp + 0x30], edx
jl 0x415426
mov edx, dword [esp + 0x98]
mov ebx, dword [esp + 0x34]
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
add ebx, edx
mov edx, dword [esi + 0x838]
add ecx, 0x10
sub edi, 0x10
cmp ecx, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], edi
jl 0x4153f9
mov edx, dword [esi + 0x820]
mov eax, 8
mov ecx, edx
and ecx, 7
sub eax, ecx
mov ecx, 0x20
sub ecx, edx
sub ecx, eax
cmp ecx, 0x20
ja 0x4160c8
xor edi, edi
shl edi, cl
mov ecx, dword [esi + 0x81c]
or ecx, edi
add edx, eax
mov dword [esi + 0x81c], ecx
jmp 0x41611c
lea edx, [edx + eax - 0x20]
xor eax, eax
mov ecx, edx
shr eax, cl
mov ecx, dword [esi + 0x81c]
or ecx, eax
mov eax, ecx
mov dword [esi + 0x81c], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
bswap eax
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x824]
mov eax, dword [esp + 0x14]
mov dword [ecx], eax
mov ebp, dword [esi + 0x824]
mov ecx, 0x20
xor eax, eax
sub ecx, edx
add ebp, 4
shl eax, cl
mov dword [esi + 0x824], ebp
mov dword [esi + 0x81c], eax
mov dword [esi + 0x820], edx
mov ecx, dword [esi + 0x824]
mov edx, dword [esi + 0x828]
mov eax, dword [esi + 0x820]
sub ecx, edx
test eax, eax
je 0x416168
mov edx, dword [esi + 0x81c]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
bswap eax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x824]
mov edx, dword [esp + 0x14]
mov dword [eax], edx
mov eax, dword [esi + 0x820]
add eax, 7
shr eax, 3
add ecx, eax
mov esi, dword [esi + 0x830]
test esi, esi
je 0x416177
shr esi, 3
sub ecx, esi
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
add esp, 0x1dc
ret