Function at 0x10004690
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x3c
mov ecx, dword [0x1004710c]
push ebx
mov ebx, dword [0x10047104]
mov edx, dword [0x100470fc]
imul ebx, ecx
push ebp
imul ebx, ecx
push esi
mov esi, dword [0x10047108]
add ebx, edx
push edi
lea eax, [esi + 3]
mov ebp, eax
mov eax, dword [0x10047110]
imul ebp, eax
add ebp, ebx
mov edi, edx
imul ebp, esi
imul edi, edx
mov edx, 2
sub edx, dword [0x10047104]
mov dword [esp + 0x18], edi
mov ebx, edx
mov edx, dword [0x10047100]
imul ebx, edx
sub ebx, ebp
mov ebp, ebx
mov ebx, dword [0x10047104]
imul edi, ebx
add ebp, edi
lea edi, [edx + 3]
imul edi, ebx
mov ebx, dword [0x100470fc]
imul ebx, esi
sub edi, ebx
sub edi, eax
add edi, edx
add edi, ecx
lea ebx, [edi*8]
sub ebx, edi
add ebx, dword [esp + 0x54]
lea ebp, [ebp + ecx*2 + 0x40]
sub ebp, eax
mov dword [esp + 0x14], 0
cmp ebx, ebp
jb 0x10004d3b
mov ebx, dword [0x10047104]
mov edi, ebx
imul edi, edx
mov ebp, edi
sub ebp, esi
imul ebp, ebx
mov ebx, dword [esp + 0x18]
imul ebx, ecx
sub ebp, ebx
add ebp, esi
lea ebx, [ebp + ebp - 2]
mov ebp, dword [esp + 0x50]
imul ebx, ecx
sub edi, eax
sub edi, esi
add edi, dword [0x100470fc]
lea edi, [ebx + edi*2 + 0x5a4d]
movzx ebx, word [ebp]
cmp ebx, edi
jne 0x10004d3b
mov edi, dword [0x10047104]
mov ebp, dword [ebp + 0x3c]
imul edi, eax
mov dword [esp + 0x24], edi
imul edi, ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], edi
inc edi
imul edi, ecx
mov ebp, eax
imul ebp, esi
sub edi, ebp
mov ebp, dword [esp + 0x10]
lea ebp, [ebp + edi*2]
add ebp, edi
lea ebx, [edx + edx*2]
lea edi, [ebx + ebp + 0xf8]
mov ebx, dword [0x100470fc]
imul ebx, ecx
mov ebp, edx
sub ebp, ebx
mov ebx, dword [esp + 0x54]
lea ebx, [ebx + ebp*2]
cmp ebx, edi
jb 0x10004d3b
mov edi, dword [0x10047104]
sub edi, eax
mov dword [esp + 0x20], edi
lea ebx, [esi + 1]
imul ebx, ecx
sub edi, ebx
lea ebx, [edi + edi*2]
lea edi, [eax + eax*2]
lea edi, [edi + edi + 3]
imul edi, edx
sub ebx, edi
mov edi, dword [esp + 0x50]
add ebx, dword [edi + 0x3c]
lea ebp, [edx + edx*2 + 3]
imul ebp, edx
add ebx, edi
lea edi, [ecx + ecx*2]
sub edi, ebp
add edi, 3
imul edi, dword [0x10047104]
lea ebp, [ecx + ecx*2 + 3]
imul ebp, esi
sub edi, ebp
mov ebp, edi
mov edi, dword [0x100470fc]
lea edi, [edi + edi*2]
lea edi, [edi + ebp + 0x4550]
cmp dword [ebx], edi
jne 0x10004d3b
mov edi, dword [esp + 0x1c]
mov ebp, dword [0x10047104]
sub edi, esi
sub edi, 2
imul edi, esi
add ebp, 2
imul ebp, eax
sub edi, ebp
add edi, dword [0x100470fc]
movzx ebp, word [ebx + 4]
lea edi, [edi + edx*2 + 0xa6]
add edi, dword [0x10047104]
add edi, edi
cmp ebp, edi
jne 0x10004d3b
mov edi, dword [esp + 0x18]
lea ebp, [edi + edi*2 - 3]
imul ebp, eax
lea edi, [ecx + ecx*2]
add edi, edi
sub ebp, edi
lea edi, [edx + edx*2]
sub ebp, edi
mov edi, dword [ebx + 0x38]
inc ebp
test edi, ebp
jne 0x10004d3b
lea edi, [ecx*4]
mov ebp, 4
sub ebp, edi
imul ebp, dword [0x10047104]
mov edi, ecx
sub edi, esi
lea edi, [ebp + edi*4 + 4]
mov ebp, dword [esp + 0x20]
imul edi, edx
add ebp, esi
lea edi, [edi + ebp*4]
movzx ebp, word [ebx + 0x14]
lea edi, [edi + edi*4]
add ebp, ebx
lea edi, [ebp + edi*8 + 0x18]
movzx ebp, word [ebx + 6]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x24]
sub edi, esi
sub edi, ecx
imul edi, edx
sub edi, dword [0x10047104]
sub edi, eax
add edi, esi
lea edi, [edi + edi*4]
add edi, ebp
mov dword [esp + 0x24], edi
je 0x100049d4
lea edi, [edx + edx]
mov ebp, edi
mov edi, ecx
sub edi, ebp
add edi, edi
lea ebp, [eax + eax]
sub edi, ebp
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x20]
add edi, 0xc
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], edi
jmp 0x10004920
mov edi, dword [esp + 0x10]
mov ebp, dword [edi + 4]
test ebp, ebp
jne 0x1000494f
mov edi, dword [0x10047104]
inc edi
imul edi, esi
mov ebp, edx
imul ebp, eax
sub ebp, edi
lea eax, [ecx + ebp + 2]
imul eax, ecx
lea edi, [esi + esi]
sub eax, edi
sub eax, edx
add eax, dword [ebx + 0x38]
jmp 0x10004987
lea edi, [esi + 3]
sub edi, eax
imul edi, eax
mov eax, edx
imul eax, edx
imul eax, edx
imul eax, esi
add edi, eax
mov eax, dword [0x100470fc]
mov dword [esp + 0x24], edi
add edi, ebp
mov ebp, dword [0x10047104]
add eax, ebp
mov ebp, dword [esp + 0x24]
lea eax, [eax + eax*2 - 3]
imul eax, ecx
lea edi, [edi + ebp*2]
add eax, edi
mov edi, dword [esp + 0x10]
add eax, dword [edi]
mov edi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
add edi, ebp
cmp eax, edi
jbe 0x100049bf
lea edi, [ecx + ecx*4]
add edi, edi
mov ebp, edi
mov edi, 5
sub edi, ebp
imul edi, dword [0x100470fc]
lea ebp, [edx + esi]
lea ebp, [ebp + ebp*4]
sub edi, ebp
add edi, eax
mov dword [esp + 0x14], edi
add dword [esp + 0x10], 0x28
sub dword [esp + 0x18], 1
mov eax, dword [0x10047110]
jne 0x10004920
mov ecx, 1
sub ecx, esi
imul ecx, eax
mov eax, dword [0x10047104]
add eax, eax
sub ecx, eax
add ecx, edx
add ecx, esi
lea ecx, [ecx + ecx*8]
lea edx, [esp + ecx*4 + 0x28]
push edx
call dword [0x10049b28]
mov eax, dword [0x100470fc]
imul eax, dword [0x10047100]
mov esi, dword [0x10047104]
mov edi, dword [0x1004710c]
mov ebp, dword [0x10047110]
mov dword [esp + 0x24], eax
imul eax, ebp
mov ecx, esi
imul ecx, edi
mov edx, esi
imul edx, dword [0x10047108]
sub eax, ecx
imul edx, edi
mov ecx, dword [esp + 0x2c]
imul eax, edi
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*2]
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x20], edx
lea edx, [edx + edx*2]
sub eax, edx
push eax
call fcn.10001e40
mov ecx, dword [0x10047108]
lea edx, [ecx*4]
lea ecx, [ebp*4]
sub ecx, edx
mov edx, dword [0x10047100]
imul ecx, esi
add edx, edi
add edx, edx
add edx, edx
sub ecx, edx
add eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [0x10047100]
imul eax, edi
inc eax
imul eax, esi
add eax, dword [esp + 0x28]
lea ecx, [ebp + 1]
imul ecx, dword [0x10047108]
add ecx, eax
mov eax, dword [0x100470fc]
lea edx, [ecx + ecx - 2]
imul edx, dword [0x10047100]
lea ecx, [eax + eax]
mov eax, ebp
neg eax
add eax, eax
sub eax, ecx
add eax, esi
lea ecx, [eax + esi - 2]
imul ecx, dword [0x10047108]
add edx, ecx
lea eax, [edi + esi*2]
lea ecx, [edx + eax*2]
lea edx, [esi + 1]
imul edx, dword [0x100470fc]
add edx, esi
lea eax, [ebp*4]
add edx, ebp
add edx, dword [esp + 0x18]
sub ecx, eax
add ecx, dword [esp + 0x30]
push edx
call fcn.10001e40
add esp, 8
cmp dword [esp + 0x18], eax
jne 0x10004d3b
mov eax, dword [esp + 0x6c]
push eax
mov eax, dword [0x100470fc]
mov edx, eax
imul edx, eax
mov eax, dword [0x10047108]
imul edx, edi
imul eax, edi
sub eax, edx
mov edx, dword [0x100470fc]
sub eax, ebp
imul edx, edi
add edx, dword [0x10047100]
sub eax, ebp
add eax, 4
imul edx, edi
push eax
mov eax, dword [0x100470fc]
inc eax
imul eax, esi
sub eax, edx
mov edx, ebp
imul ebp, edi
imul edx, dword [0x10047108]
add eax, edx
mov ecx, dword [0x10047100]
lea edx, [eax + eax*2 + 0x2000]
imul ecx, edi
mov eax, 1
sub eax, ebp
imul eax, dword [0x100470fc]
sub eax, esi
lea eax, [eax + eax*2 + 0x1000]
or edx, eax
lea eax, [esi + 1]
imul eax, esi
add ecx, ecx
sub eax, ecx
sub eax, dword [esp + 0x28]
push edx
sub eax, dword [0x10047108]
mov edx, dword [esp + 0x24]
sub eax, edi
add eax, dword [ebx + 0x34]
push edx
push eax
call dword [esp + 0x6c]
mov ebp, eax
add esp, 0x14
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x10004c7c
mov esi, dword [0x1004710c]
mov ecx, dword [0x10047104]
mov eax, dword [0x10047108]
mov edx, dword [esp + 0x6c]
add eax, esi
imul eax, ecx
mov edi, dword [0x10047110]
push edx
mov edx, dword [0x100470fc]
lea ebp, [eax + edx + 4]
mov eax, ecx
imul ebp, edi
imul eax, esi
inc eax
imul eax, ecx
sub eax, ebp
mov ebp, edx
imul ebp, ecx
imul ebp, ecx
lea eax, [eax + eax*2 + 4]
push eax
mov eax, 2
sub eax, ebp
mov ebp, dword [0x10047108]
imul ebp, esi
imul ebp, esi
sub eax, ebp
imul eax, dword [0x10047100]
mov ebp, 1
sub ebp, esi
imul ebp, edx
imul edx, dword [0x10047100]
add eax, ebp
mov ebp, dword [0x10047108]
add ebp, ebp
sub eax, ebp
add eax, ecx
add ecx, ecx
sub edx, ecx
lea edx, [edx + edx*2 - 0xc]
imul edx, edi
mov ecx, 1
sub ecx, dword [0x10047108]
lea eax, [eax + eax*2]
imul ecx, esi
lea eax, [eax + edx + 0x1000]
mov edx, 0x800
sub edx, edi
lea ecx, [ecx + edx*2]
mov edx, dword [esp + 0x20]
add ecx, ecx
or eax, ecx
push eax
lea eax, [edx + edi*4]
add eax, edi
push eax
push 0
call dword [esp + 0x6c]
add esp, 0x14
mov dword [esp + 0x10], eax
test eax, eax
je 0x10004d3b
mov ebp, eax
mov ecx, dword [0x1004710c]
mov edx, dword [0x10047100]
mov eax, ecx
imul eax, ecx
sub eax, dword [0x100470fc]
mov edi, edx
add eax, 2
imul edi, ecx
imul eax, edx
mov edx, dword [0x10047104]
add eax, edx
lea esi, [eax + eax*2]
mov eax, dword [0x10047110]
sub ecx, eax
lea ecx, [ecx + ecx*2 - 3]
imul ecx, eax
add edx, 0xfffffffd
imul edx, eax
lea ecx, [esi + ecx + 0x40]
mov eax, 4
sub eax, dword [0x10047108]
push ecx
lea ecx, [edx + eax*2]
push ecx
call dword [0x10049b1c]
push eax
call dword [0x10049b24]
mov ecx, dword [0x100470fc]
mov esi, eax
mov eax, dword [0x10047104]
add eax, 3
imul eax, dword [0x10047104]
lea edx, [edi - 1]
imul edx, ecx
add edx, eax
mov eax, dword [0x1004710c]
inc eax
imul eax, dword [0x10047108]
add edx, eax
shl edx, 7
add esi, edx
jne 0x10004d45
mov edx, dword [esp + 0x6c]
lea eax, [edi + 1]
imul eax, dword [0x1004710c]
add eax, ecx
add eax, dword [0x10047104]
push edx
lea eax, [eax + eax*2 + 0x8000]
push eax
push esi
push ebp
call dword [esp + 0x6c]
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov dword [esi + 4], ebp
mov ecx, dword [0x10047110]
movzx edx, word [ebx + 0x16]
lea eax, [ecx - 3]
imul eax, dword [0x1004710c]
sub eax, dword [0x10047100]
sub eax, ecx
lea ecx, [eax + eax*2 + 0x2000]
mov eax, dword [esp + 0x58]
and ecx, edx
mov edx, dword [esp + 0x60]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x64]
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x6c]
mov dword [esi + 0x34], edx
neg ecx
sbb ecx, ecx
neg ecx
mov dword [esi + 0x14], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x68]
mov dword [esi + 0x2c], ecx
mov ecx, dword [esp + 0x2c]
mov eax, 1
sub eax, dword [0x1004710c]
imul eax, dword [0x10047100]
add eax, dword [0x10047110]
lea edx, [ecx + eax*2]
add edx, eax
mov dword [esi + 0x3c], edx
mov ecx, dword [0x1004710c]
mov edx, dword [ebx + 0x54]
mov edi, dword [0x10047104]
mov eax, dword [0x10047100]
imul eax, ecx
mov dword [esp + 0x18], edx
lea edx, [edi*4]
mov ebp, edx
mov dword [esp + 0x24], eax
mov edx, 0xfffffffc
sub edx, ebp
imul edx, dword [0x10047108]
mov ebp, dword [0x10047110]
add eax, ebp
mov ebp, dword [0x100470fc]
add eax, eax
add eax, eax
sub edx, eax
lea eax, [ebp + 1]
imul eax, ecx
mov ecx, dword [esp + 0x54]
add edx, dword [esp + 0x18]
inc eax
imul eax, dword [0x10047108]
add eax, ebp
add eax, edi
add eax, dword [0x10047100]
lea eax, [ecx + eax*4]
push eax
call fcn.10001e90
add esp, 4
test eax, eax
je 0x10005287
imul ebp, dword [0x10047110]
imul edi, dword [0x1004710c]
mov eax, dword [0x10047108]
mov ecx, dword [esp + 0x6c]
mov edx, dword [0x1004710c]
push ecx
mov ecx, eax
imul ecx, edx
add ebp, ecx
mov ecx, dword [0x10047100]
sub ebp, ecx
lea ebp, [ebp + ebp + 4]
push ebp
mov ebp, eax
sub ebp, dword [esp + 0x2c]
inc edx
imul edx, dword [0x10047110]
lea ebp, [ebp + ebp - 2]
imul ebp, ecx
mov ecx, dword [0x10047110]
add edx, eax
lea edx, [ebp + edx*2 + 0x1000]
push edx
lea edx, [ecx + ecx]
inc edi
mov ebp, 0xfffffffe
imul edi, eax
mov eax, dword [esp + 0x1c]
sub ebp, edx
imul ebp, ecx
add edi, edi
sub ebp, edi
add ebp, dword [esp + 0x24]
push ebp
push eax
call dword [esp + 0x6c]
mov ecx, dword [0x10047108]
mov edi, dword [0x1004710c]
lea edx, [ecx + ecx]
mov ecx, dword [0x100470fc]
mov ebp, ecx
imul ebp, ecx
sub edi, edx
mov edx, dword [0x10047100]
imul ebp, edx
imul ebp, dword [0x10047110]
add ebp, 2
imul ebp, ecx
add ebp, edx
mov edx, dword [0x10047110]
lea edx, [edx*4 - 4]
imul edx, dword [0x10047104]
lea ecx, [ebp + edi*2]
lea ecx, [edx + ecx*4]
add ecx, dword [ebx + 0x54]
mov edx, dword [esp + 0x64]
push ecx
push edx
push eax
mov dword [esp + 0x44], eax
call dword [0x10049af0]
mov edx, dword [0x10047100]
mov eax, dword [0x1004710c]
mov ecx, edx
imul ecx, eax
lea ecx, [ecx + ecx*2]
mov edi, 3
sub edi, ecx
imul edi, dword [0x10047110]
mov ecx, dword [0x10047108]
lea ecx, [ecx + ecx*2]
sub edi, ecx
lea ecx, [eax + eax*2]
add edi, 3
imul edi, dword [0x10047104]
mov ebp, 3
sub ebp, ecx
imul ebp, edx
add edi, ebp
imul edi, edi, 0x7c
mov ecx, edx
imul ecx, edx
imul eax, eax, 0x2e7
imul ecx, dword [0x10047108]
mov edx, dword [0x100470fc]
add ecx, 0x174
imul edx, edx, 0x2ea
imul ecx, dword [0x10047110]
sub edi, ecx
add edi, edx
mov edx, dword [esp + 0x70]
add edi, eax
mov eax, dword [esp + 0x44]
lea ecx, [eax + edi*2]
mov eax, dword [edx + 0x3c]
add eax, ecx
mov dword [esi], eax
mov ecx, dword [0x10047100]
mov edx, ecx
imul edx, ecx
mov ecx, dword [0x10047108]
sub edx, ecx
imul edx, dword [0x10047104]
sub edx, dword [0x100470fc]
sub edx, ecx
add edx, dword [0x10047110]
mov ecx, dword [esp + 0x30]
add edx, dword [0x1004710c]
lea edx, [ecx + edx*4]
mov dword [eax + 0x34], edx
mov ecx, dword [0x100470fc]
mov edx, dword [0x10047108]
mov eax, dword [0x10047104]
mov edi, ecx
imul eax, edx
imul edi, ecx
mov ecx, dword [0x10047100]
imul edi, ecx
lea ebp, [eax + eax*2]
add edi, edi
add edi, edi
sub edi, ebp
sub edi, eax
imul edi, dword [0x100470fc]
mov eax, dword [0x1004710c]
lea ebp, [edx + eax]
lea edi, [edi + ebp*4 - 8]
mov ebp, dword [0x10047104]
imul edi, eax
mov eax, 0xfffffffc
sub eax, edx
imul eax, dword [0x10047110]
inc ebp
imul ebp, ecx
imul ecx, dword [0x1004710c]
sub eax, ebp
add eax, dword [0x100470fc]
lea ecx, [ecx*4 - 4]
imul ecx, dword [0x10047110]
add ecx, dword [esp + 0x74]
lea edx, [eax + edx*2]
lea eax, [edi + edx*4]
mov edx, dword [esp + 0x70]
shl eax, 6
add eax, esi
push eax
push ebx
push ecx
push edx
call fcn.10001ec0
add esp, 0x30
test eax, eax
je 0x10005287
mov ebp, dword [0x10047100]
mov edx, dword [0x100470fc]
mov edi, dword [0x1004710c]
mov ecx, ebp
imul ecx, ebp
imul ecx, dword [0x10047110]
mov eax, edx
imul eax, dword [0x10047108]
imul eax, edi
sub eax, ecx
lea ecx, [eax + eax*2 - 3]
mov eax, dword [0x10047104]
imul ecx, edi
imul eax, ebp
inc eax
imul eax, edx
sub eax, dword [0x10047110]
lea eax, [eax + eax*2]
add ecx, eax
mov eax, dword [esi]
add ecx, dword [eax + 0x34]
sub ecx, dword [ebx + 0x34]
je 0x1000519c
mov ebx, dword [0x10047104]
mov eax, edx
sub eax, dword [0x10047104]
lea ebp, [eax + 2]
imul eax, edi
imul ebp, dword [0x10047100]
sub ebp, dword [0x10047110]
add eax, dword [0x10047100]
sub ebp, edi
add ebp, ebx
lea ecx, [ecx + ebp*2]
mov ebp, edx
imul ebp, edx
mov edx, dword [0x10047110]
lea eax, [eax + eax*2]
push ecx
shl eax, 6
sub eax, 0xc0
lea ecx, [edx + edx]
imul eax, ebx
sub ecx, ebp
sub ecx, edi
lea ecx, [ecx + ecx*2]
shl ecx, 6
add ecx, esi
add eax, ecx
call fcn.10002e30
mov edx, dword [0x10047104]
mov ecx, dword [0x1004710c]
mov edi, eax
mov eax, dword [0x100470fc]
mov ebx, eax
imul eax, edx
imul ebx, dword [0x10047100]
mov ebp, edx
imul ebx, ecx
imul ebp, dword [0x10047108]
imul ebp, ecx
sub ebp, ebx
mov ebx, dword [0x10047100]
sub ebp, eax
mov eax, dword [0x10047110]
add edi, dword [0x10047100]
imul ebx, eax
sub ebp, ebx
mov ebx, edx
imul ebx, eax
add ebp, ebx
sub ebp, edx
add ebp, edi
add ebp, dword [0x10047108]
add esp, 4
add ebp, ecx
add ebp, ecx
mov dword [esi + 0x18], ebp
jmp 0x100051a3
mov dword [esi + 0x18], 1
mov eax, dword [0x10047104]
mov ecx, dword [0x100470fc]
lea edx, [eax - 1]
imul edx, eax
lea edx, [edx + ecx - 1]
mov ecx, dword [0x10047108]
imul edx, dword [0x10047100]
mov edi, 2
sub edi, ecx
imul edi, eax
add edx, ecx
add edi, edx
add edi, dword [0x1004710c]
shl edi, 6
add edi, esi
push edi
call fcn.100031f0
add esp, 4
test eax, eax
je 0x10005287
mov edx, dword [0x10047104]
mov ebx, dword [0x10047108]
mov ecx, dword [0x10047110]
mov edi, dword [0x1004710c]
mov ebp, edx
imul ebp, dword [0x10047100]
imul ebp, ebx
mov eax, ecx
imul ebp, ebx
imul eax, edi
add ebp, eax
imul ebp, edi
mov edi, dword [0x10047100]
add edi, edx
add edi, ecx
imul edi, ecx
sub edi, ebp
lea ecx, [edx + edx]
sub edi, ecx
sub edi, eax
shl edi, 6
add edi, esi
push edi
call fcn.10002800
add esp, 4
test eax, eax
je 0x10005287
mov edx, dword [0x10047100]
mov eax, dword [0x10047104]
lea ecx, [eax + edx]
mov eax, dword [0x10047108]
add ecx, eax
imul ecx, eax
mov eax, dword [0x10047110]
lea edx, [eax - 2]
imul edx, eax
mov eax, dword [0x1004710c]
sub edx, ecx
lea ecx, [edx + eax*2]
shl ecx, 8
add ecx, esi
push ecx
call fcn.10002d50
add esp, 4
test eax, eax
jne 0x1000529a
push esi
call fcn.10003fd0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3c
ret
mov edx, dword [esi]
mov ecx, dword [edx + 0x28]
test ecx, ecx
je 0x1000536a
cmp dword [esi + 0x14], 0
je 0x10005319
mov edx, dword [0x10047104]
mov edi, dword [0x10047100]
mov ebx, edx
imul ebx, edi
mov eax, dword [0x10047108]
add ebx, 4
imul ebx, edi
mov edi, dword [0x100470fc]
add edi, 2
imul edi, edx
mov edx, dword [0x10047110]
add ebx, edi
lea edi, [edx + 1]
imul edi, edx
add eax, eax
add eax, eax
mov edx, 8
sub edx, eax
imul edx, dword [0x1004710c]
add ebx, edi
lea edx, [edx + ebx*4]
sub edx, eax
add edx, ecx
add edx, dword [esp + 0x10]
pop edi
mov dword [0x10049b48], edx
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov eax, dword [0x10047104]
mov edx, eax
imul edx, eax
mov edi, 2
sub edi, edx
mov edx, dword [0x1004710c]
imul edi, eax
mov eax, dword [0x10047110]
lea ebx, [eax + edx - 3]
imul ebx, eax
inc edx
imul edx, dword [0x100470fc]
add edi, ebx
sub edi, edx
sub edi, dword [0x10047108]
mov eax, esi
add edi, ecx
add edi, dword [0x10047100]
add edi, dword [esp + 0x10]
mov dword [esi + 0x38], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
pop edi
mov dword [esi + 0x38], 0
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret