Function at 0x10004fc0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [0x100491b8]
push ebp
mov ebp, dword [0x100491a8]
push esi
mov esi, dword [0x100491ac]
mov ecx, ebx
imul ecx, esi
push edi
mov edi, dword [0x100491b4]
sub ecx, edi
imul ecx, edi
lea edx, [ecx + ebp + 3]
lea ecx, [ebp + ebp]
imul edx, edi
sub ecx, esi
lea ecx, [ecx*4 - 9]
imul ecx, ebx
lea edx, [ecx + edx*4 + 0x40]
mov ecx, edi
imul ecx, esi
lea eax, [esi + esi]
sub edx, eax
mov eax, 1
sub eax, ecx
mov ecx, dword [esp + 0x68]
imul eax, edi
sub eax, ebx
add eax, ebp
lea ecx, [ecx + eax*4]
add ecx, eax
mov dword [esp + 0x18], 0
cmp ecx, edx
jb 0x100056d3
mov edx, dword [0x100491a4]
mov eax, edx
imul eax, ebx
mov ecx, dword [0x100491b0]
mov dword [esp + 0x1c], eax
imul ecx, ecx
add eax, esi
imul eax, esi
mov dword [esp + 0x28], eax
lea eax, [edx + ebp + 2]
mov edx, dword [esp + 0x28]
imul eax, ebp
sub eax, edx
add eax, ecx
mov dword [esp + 0x38], ecx
mov ecx, dword [0x100491a4]
add eax, ecx
lea edx, [eax + eax*2 + 0x5a4d]
mov eax, dword [esp + 0x64]
movzx eax, word [eax]
cmp eax, edx
jne 0x100056d3
mov edx, dword [esp + 0x64]
mov eax, dword [edx + 0x3c]
mov edx, ebp
imul edx, esi
lea ecx, [ecx + ecx - 2]
imul ecx, ebx
lea edx, [edx + edx - 4]
imul edx, ebp
add ecx, eax
mov eax, dword [0x100491b0]
add ecx, edx
lea edx, [ecx + eax*2 + 0xf8]
imul eax, edi
mov ecx, dword [0x100491a4]
imul ecx, ebp
imul ecx, esi
imul ecx, esi
imul ecx, esi
push edx
mov edx, ebp
sub edx, ecx
sub edx, eax
add edx, dword [esp + 0x6c]
push edx
call fcn.10002520
add esp, 8
test eax, eax
je 0x100056d3
mov edx, dword [0x100491b0]
lea eax, [edx + edx]
mov ecx, eax
mov eax, edi
sub eax, ecx
sub eax, dword [esp + 0x1c]
lea ecx, [edx + 3]
imul eax, dword [0x100491a4]
imul ecx, esi
add eax, ecx
lea ecx, [edi - 2]
imul ecx, ebx
add eax, ecx
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + 0x3c]
lea ecx, [ecx + eax*2]
add ecx, eax
add ecx, dword [esp + 0x64]
mov eax, 1
sub eax, edx
sub eax, edi
imul eax, ebx
sub eax, edx
sub eax, ebp
sub eax, edi
lea eax, [eax + eax*2]
lea eax, [eax + eax + 0x4550]
mov dword [esp + 0x10], ecx
cmp dword [ecx], eax
jne 0x100056d3
mov eax, dword [0x100491a4]
lea ecx, [edi + edi*2]
mov dword [esp + 0x28], ecx
add ecx, 0xfffffffd
imul ecx, edx
lea eax, [ebx + eax*2]
add eax, esi
lea eax, [eax + eax*2]
sub ecx, eax
mov eax, dword [esp + 0x10]
movzx edx, word [eax + 4]
add ecx, 0x14c
cmp edx, ecx
jne 0x100056d3
mov eax, dword [eax + 0x38]
mov dword [esp + 0x20], eax
mov eax, esi
imul eax, esi
add eax, 3
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x28]
lea ecx, [ebx + ebx*2]
sub edx, ecx
imul edx, ebp
sub eax, ecx
imul eax, dword [0x100491b0]
mov ecx, dword [0x100491a4]
add edx, eax
lea eax, [ecx + ecx*2 - 3]
imul eax, edi
add edx, eax
mov eax, dword [esp + 0x1c]
imul eax, esi
lea eax, [eax + eax*2]
add edx, eax
mov eax, dword [0x100491b0]
sub edx, eax
sub edx, eax
sub edx, eax
sub edx, ebx
sub edx, ebx
sub edx, ebx
add edx, esi
add edx, esi
lea edx, [edx + esi + 1]
test dword [esp + 0x20], edx
jne 0x100056d3
imul eax, esi
mov edx, dword [esp + 0x10]
movzx edx, word [edx + 0x14]
mov dword [esp + 0x1c], eax
add eax, ebp
add eax, edi
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
sub edx, eax
mov eax, dword [esp + 0x10]
lea edx, [edx + eax + 0x18]
mov eax, dword [esp + 0x1c]
imul eax, esi
lea eax, [eax + ebp - 2]
mov dword [esp + 0x2c], edx
imul eax, edi
mov edx, ebp
imul edx, ebx
sub eax, edx
mov edx, dword [esp + 0x10]
movzx edx, word [edx + 6]
add eax, edx
sub eax, ebx
add eax, ecx
add eax, ecx
add eax, ebp
add eax, esi
mov dword [esp + 0x30], eax
je 0x10005361
mov edx, dword [0x100491b0]
imul edx, ecx
mov eax, ecx
imul eax, edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov eax, edi
imul eax, edi
lea edx, [esi - 3]
imul edx, ebp
sub edx, eax
sub edx, ecx
inc edx
imul edx, ebx
mov dword [esp + 0x14], eax
lea eax, [edx + ecx*2]
sub eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
sub eax, dword [0x100491b0]
sub eax, ebp
add eax, dword [esp + 0x14]
add eax, dword [esp + 0x1c]
add eax, edi
add eax, esi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
add edx, 0xc
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], eax
jmp 0x100052a6
mov ecx, dword [0x100491a4]
cmp dword [edx + 4], 0
jne 0x100052c7
mov eax, dword [esp + 0x24]
imul eax, esi
lea eax, [eax + eax - 6]
imul eax, edi
lea ecx, [esi + esi]
add eax, ecx
add eax, dword [esp + 0x20]
add eax, dword [edx]
jmp 0x100052fb
mov eax, dword [0x100491b0]
imul eax, ebx
mov edx, ebp
imul edx, edi
sub eax, edx
sub eax, dword [0x100491b0]
mov edx, dword [esp + 0x14]
add eax, dword [edx + 4]
add eax, dword [esp + 0x24]
add eax, ecx
add eax, ecx
add eax, ebp
add eax, ebp
add eax, edi
add eax, ebx
add eax, ebx
add eax, esi
mov ecx, edx
add eax, dword [ecx]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
add ecx, edx
cmp eax, ecx
jbe 0x1000534b
mov ecx, dword [esp + 0x28]
imul ecx, edi
inc ecx
imul ecx, ebp
add ecx, esi
lea ecx, [ecx + ecx*2]
lea edx, [ebx + ebx*2]
sub ecx, edx
imul ecx, esi
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x38]
sub ecx, ebp
sub ecx, ebx
add ecx, dword [0x100491a4]
lea edx, [ecx + ecx*2]
mov ecx, dword [esp + 0x30]
add ecx, edx
lea edx, [ebx + ebx*2 + 3]
imul edx, edi
sub ecx, edx
add ecx, eax
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x14]
add edx, 0x28
sub dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jne 0x100052a0
add edi, ebx
lea eax, [edi + edi*8]
shl eax, 4
lea ecx, [esp + eax + 0x3c]
push ecx
call dword [0x1004bca0]
mov edi, dword [0x100491a8]
mov esi, dword [0x100491b4]
mov ebx, dword [0x100491ac]
mov ebp, dword [0x100491b8]
mov ecx, dword [0x100491a4]
mov edx, edi
imul edx, esi
mov dword [esp + 0x24], edx
mov edx, ebp
imul edx, ebx
mov dword [esp + 0x28], edx
mov edx, dword [0x100491b0]
imul edx, ecx
imul edx, esi
imul edx, ebx
mov esi, edi
imul esi, ebp
sub esi, edx
mov edx, dword [esp + 0x24]
imul edx, ebx
sub esi, edx
mov edx, dword [0x100491b4]
imul edx, ebp
add esi, edx
sub esi, dword [0x100491b0]
mov eax, ecx
imul eax, edi
sub esi, edi
sub esi, ebx
add esi, eax
add esi, dword [esp + 0x28]
lea eax, [ebx + eax*2]
add esi, ecx
add esi, ecx
mov ecx, dword [0x100491b0]
imul eax, ecx
sub eax, ebx
add eax, 2
imul eax, dword [0x100491b4]
inc ecx
imul ecx, ebx
add eax, ecx
lea ecx, [edi + edi*2]
sub eax, ecx
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x10]
add edx, dword [eax + 0x50]
add esi, ebp
add esi, dword [esp + 0x40]
push edx
call fcn.100024d0
mov edx, eax
mov eax, dword [0x100491b0]
mov ecx, eax
imul ecx, eax
imul ecx, ebx
add ecx, ecx
sub ecx, ebp
sub ecx, ebp
sub ecx, 4
imul ecx, edi
add edx, ecx
mov ecx, dword [0x100491a4]
sub ecx, eax
add ecx, ecx
mov esi, ecx
mov ecx, dword [0x100491b4]
sub esi, ecx
sub esi, ebx
add esi, ebp
lea edx, [edx + esi*2]
inc eax
mov dword [esp + 0x20], edx
imul eax, ebx
lea edx, [ecx + ecx]
sub edx, eax
mov eax, dword [esp + 0x44]
sub edx, edi
add edx, ebp
lea esi, [eax + edx*2]
lea eax, [edi + 1]
imul eax, edi
sub eax, dword [esp + 0x2c]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
lea edx, [ecx + eax*2]
add edx, eax
push edx
call fcn.100024d0
add esp, 8
cmp dword [esp + 0x1c], eax
jne 0x100056d3
mov eax, dword [0x100491a4]
imul eax, dword [0x100491b4]
mov ecx, dword [esp + 0x80]
mov esi, eax
imul esi, ebp
push ecx
mov edx, 1
sub edx, ebp
add edx, edx
add edx, edx
push edx
mov edx, dword [0x100491b0]
inc esi
imul esi, edx
lea ecx, [edi + edi]
sub ecx, esi
mov esi, 0x400
sub esi, edx
sub esi, dword [0x100491b4]
lea edx, [ebx + ebp]
add edx, edx
add edx, edx
add edx, edx
add esi, esi
lea ecx, [ecx + ecx*2]
add esi, esi
sub esi, edx
lea ecx, [ecx + ecx + 0x2000]
or ecx, esi
push ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [0x100491a4]
mov edx, ecx
imul edx, ecx
imul edx, ebp
imul edx, ebx
mov esi, edi
imul esi, edi
sub edx, esi
sub edx, eax
mov eax, dword [0x100491b4]
sub edx, eax
sub edx, eax
mov eax, dword [esp + 0x20]
sub edx, ebx
sub edx, ebx
add edx, dword [esp + 0x34]
add edx, ecx
add edx, edi
add edx, ebp
add edx, dword [eax + 0x34]
mov ebp, dword [esp + 0x7c]
push edx
call ebp
mov edi, eax
add esp, 0x14
mov dword [esp + 0x14], edi
test edi, edi
jne 0x100055fe
mov eax, dword [0x100491b4]
mov edx, dword [esp + 0x80]
lea ecx, [eax + eax]
lea esi, [eax*4]
mov edi, dword [0x100491b8]
mov dword [esp + 0x38], ecx
mov ecx, dword [0x100491ac]
imul eax, ecx
push edx
add eax, 2
mov edx, 4
sub edx, ecx
push edx
mov edx, dword [0x100491a4]
imul eax, edx
sub eax, dword [0x100491b0]
mov ebx, 1
sub eax, edi
sub ebx, edi
mov edi, dword [0x100491a8]
lea ebx, [esi + ebx*4]
imul ebx, edi
add eax, ecx
lea eax, [ebx + eax*4 + 0x1000]
lea ebx, [edx + edi*2 + 0x800]
add ebx, ebx
add ebx, ebx
sub ebx, esi
or eax, ebx
push eax
lea eax, [ecx + 1]
imul eax, edi
mov esi, edx
sub esi, eax
mov eax, dword [esp + 0x44]
add esi, esi
sub esi, eax
sub esi, 4
imul esi, ecx
mov ecx, dword [0x100491b0]
add esi, dword [esp + 0x28]
add ecx, edx
imul ecx, edi
add ecx, eax
lea edx, [esi + ecx*2]
push edx
push 0
call ebp
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
je 0x100056d3
mov edi, eax
mov eax, dword [0x100491a4]
mov ecx, dword [0x100491b8]
mov edx, dword [0x100491ac]
mov esi, dword [0x100491b4]
mov ebx, eax
imul ebx, ecx
imul ebx, edx
lea ebx, [ebx + esi - 1]
imul ebx, esi
sub eax, dword [0x100491a8]
add ebx, ecx
lea esi, [ebx + edx + 1]
imul esi, dword [0x100491a8]
mov ebx, dword [0x100491b4]
imul ebx, ebx
sub esi, ebx
sub esi, dword [0x100491b0]
sub eax, ecx
sub esi, ecx
add eax, edx
add esi, 0x40
push esi
lea eax, [eax + eax*2 + 8]
push eax
call dword [0x1004bcd8]
push eax
call dword [0x1004bc98]
mov ecx, dword [0x100491a8]
mov edx, dword [0x100491ac]
lea ebx, [ecx + 1]
imul ebx, edx
mov esi, eax
mov eax, dword [0x100491b8]
sub eax, ebx
lea eax, [eax + eax*2]
shl eax, 6
add esi, eax
jne 0x100056dd
mov eax, dword [esp + 0x80]
mov esi, dword [0x100491b8]
mov ebx, dword [0x100491a4]
push eax
mov eax, ecx
imul eax, esi
sub ebx, eax
imul ebx, edx
sub ebx, ecx
imul ebx, ecx
mov eax, 1
sub eax, esi
imul eax, dword [0x100491b4]
add ebx, edx
add eax, ebx
lea ecx, [eax + eax*2 + 0x8000]
push ecx
push 0
push edi
call dword [esp + 0x80]
add esp, 0x10
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov dword [esi + 4], edi
mov ebx, dword [0x100491a4]
mov edi, dword [0x100491b4]
mov eax, dword [0x100491a8]
add eax, 0xfffffffe
imul eax, dword [0x100491a8]
mov edx, ebx
imul edx, dword [0x100491ac]
sub eax, edx
mov edx, dword [esp + 0x10]
mov ecx, edi
imul ecx, dword [0x100491b8]
sub eax, ecx
sub eax, dword [0x100491b0]
movzx ecx, word [edx + 0x16]
sub eax, edi
add eax, ebx
lea eax, [eax + eax*4 + 0x2000]
and eax, ecx
mov ecx, dword [esp + 0x74]
neg eax
sbb eax, eax
mov dword [esi + 0x24], ecx
mov ecx, dword [esp + 0x7c]
neg eax
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x78]
mov dword [esi + 0x28], eax
mov eax, dword [esp + 0x80]
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x34], eax
mov dword [esi + 0x1c], ebp
mov eax, dword [0x100491b0]
mov ecx, dword [0x100491b4]
sub ecx, eax
imul eax, dword [0x100491a4]
imul ecx, dword [0x100491ac]
sub ecx, 2
imul ecx, dword [0x100491a8]
sub ecx, eax
add ecx, dword [esp + 0x40]
mov ebp, 3
mov dword [esi + 0x3c], ecx
mov ebx, dword [0x100491b8]
mov edi, dword [edx + 0x54]
mov edx, dword [0x100491b0]
mov eax, dword [0x100491b4]
lea ecx, [ebx + ebx*2]
sub ebp, ecx
mov dword [esp + 0x34], ecx
lea eax, [edx + eax*2]
mov ecx, ebp
mov ebp, dword [0x100491a4]
imul ecx, ebp
lea eax, [eax + eax*2]
sub ecx, eax
add ecx, edi
mov dword [esp + 0x30], edi
mov edi, dword [0x100491a8]
imul edx, edi
push ecx
imul edx, edi
mov ecx, dword [0x100491b4]
imul ecx, ebx
add edx, ecx
mov ecx, dword [0x100491ac]
imul edx, edi
mov eax, ebx
imul eax, ecx
imul eax, ecx
add edx, ebp
add eax, edx
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x6c]
sub eax, edx
push eax
call fcn.10002520
add esp, 8
test eax, eax
je 0x10005bbe
mov ecx, dword [esp + 0x80]
push ecx
mov ecx, dword [0x100491b0]
mov eax, ecx
imul eax, ebp
imul eax, dword [0x100491ac]
add eax, edi
lea edx, [eax + eax*2]
mov eax, dword [esp + 0x38]
sub eax, edx
add eax, 4
push eax
mov eax, ebp
imul eax, edi
imul eax, ebx
imul eax, ebx
add eax, eax
add eax, eax
mov edx, 4
sub edx, eax
imul edx, edi
mov eax, ecx
imul eax, ecx
mov ecx, ebx
sub ecx, eax
sub ecx, ebp
lea edx, [edx + ecx*4 - 0x10]
imul edx, dword [0x100491b0]
lea eax, [ebx + ebx + 0x400]
sub eax, edi
lea ecx, [edx + eax*4]
mov eax, dword [0x100491ac]
lea edx, [edi - 1]
imul edx, eax
push ecx
mov ecx, dword [0x100491b4]
sub edx, ecx
lea edx, [edx + ebx - 2]
imul edx, ebx
mov ebx, ebp
sub ebx, edi
lea ebx, [ebx + eax + 1]
imul ebx, ebp
add edx, ebx
mov ebx, ecx
imul ebx, eax
dec ebx
imul ebx, edi
add edx, ebx
sub edx, ecx
add edx, dword [esp + 0x3c]
add edx, eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [esp + 0x80]
mov ecx, dword [0x100491a4]
mov edx, dword [esp + 0x24]
inc ecx
imul ecx, dword [0x100491b8]
mov edi, eax
mov eax, dword [edx + 0x54]
sub eax, ecx
sub eax, dword [0x100491b0]
mov ecx, dword [esp + 0x78]
sub eax, dword [0x100491ac]
add eax, dword [0x100491a8]
add eax, dword [0x100491b4]
push eax
push ecx
push edi
call dword [0x1004bce0]
mov eax, dword [0x100491a4]
mov edx, dword [0x100491ac]
mov ebp, dword [0x100491b0]
mov ecx, eax
imul ecx, edx
imul ecx, edx
sub ebp, ecx
mov ecx, dword [0x100491b8]
imul ebp, ecx
add ebp, eax
imul ebp, ebp, 0xf8
sub ebp, 0xc
imul ebp, ecx
mov ecx, dword [0x100491b4]
lea ebx, [ecx + ecx*2]
lea ebx, [ebx + ebx + 0xf2]
imul ebx, ecx
mov ecx, dword [0x100491b0]
add ecx, eax
sub ebp, ebx
mov ebx, dword [0x100491a8]
add ecx, ebx
lea ecx, [ecx + ecx*2]
lea ecx, [ebp + ecx*2]
mov ebp, eax
imul ebp, ebp, 0xf8
sub eax, ebx
imul eax, eax, 0xf8
add ebp, 0xfe
imul ebp, edx
mov edx, dword [esp + 0x84]
add ecx, ebp
add ecx, eax
add ecx, dword [edx + 0x3c]
mov edx, dword [esp + 0x34]
add edi, ecx
mov dword [esi], edi
mov eax, dword [0x100491ac]
mov ecx, 1
sub ecx, eax
imul ecx, dword [0x100491b8]
add ecx, dword [0x100491a8]
add ecx, eax
lea eax, [edx + ecx*4]
mov dword [edi + 0x34], eax
mov ecx, dword [0x100491a8]
mov edi, dword [0x100491b0]
mov ebx, dword [0x100491ac]
lea edx, [ecx + ecx]
mov dword [esp + 0x48], edx
mov edx, dword [0x100491b8]
mov eax, ecx
imul eax, edx
add eax, dword [0x100491a4]
mov ebp, edi
imul eax, dword [0x100491b4]
imul ebp, ebx
sub eax, ebp
mov ebp, dword [0x100491a4]
imul eax, ebp
sub eax, edi
add eax, dword [esp + 0x48]
add eax, ebx
lea eax, [eax + eax*2]
shl eax, 6
add eax, esi
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, edi
imul eax, ebp
mov ebp, 2
sub ebp, eax
imul ebp, dword [0x100491b4]
mov eax, ecx
imul eax, ebx
add eax, edx
imul eax, ecx
add ebp, eax
imul ebp, dword [0x100491b4]
lea ecx, [edx + 1]
imul ecx, edx
mov edx, dword [esp + 0x8c]
add ebp, ecx
sub ebp, dword [esp + 0x50]
sub ebp, edi
sub ebp, ebx
add ebp, dword [esp + 0x90]
push ebp
push edx
call fcn.10002580
add esp, 0x30
test eax, eax
je 0x10005bbe
mov edi, dword [0x100491b0]
mov ebx, dword [0x100491a8]
mov ecx, dword [0x100491ac]
mov edx, dword [0x100491b4]
mov eax, edi
sub eax, ebx
add eax, edx
imul eax, edx
lea ebp, [ecx + 1]
imul ebp, ecx
lea eax, [eax + ebp + 2]
imul eax, ebx
mov ebx, dword [0x100491a4]
imul ebx, ecx
mov ebp, 2
sub ebp, ebx
imul ebp, ecx
mov ecx, dword [0x100491b8]
mov ebx, ecx
imul ebx, ecx
mov ecx, dword [esi]
add eax, ebp
add eax, ebx
sub eax, edi
add eax, edx
mov edx, dword [esp + 0x10]
lea eax, [eax + eax*2]
add eax, dword [ecx + 0x34]
sub eax, dword [edx + 0x34]
je 0x10005ac7
push eax
push esi
call fcn.100036e0
add esp, 8
mov dword [esi + 0x18], eax
jmp 0x10005ace
mov dword [esi + 0x18], 1
mov edx, dword [0x100491ac]
lea eax, [edx + edx]
mov ecx, eax
mov eax, dword [0x100491a8]
mov ebx, eax
sub ebx, ecx
mov ecx, dword [0x100491b0]
mov edi, dword [0x100491b4]
sub ebx, ecx
add ebx, dword [0x100491b8]
imul ebx, edx
mov edx, dword [0x100491a4]
mov ebp, edx
imul ebp, edx
imul ebp, eax
sub eax, dword [0x100491b8]
imul ebp, edi
sub ebp, ecx
imul ebp, edi
add ebx, ebp
lea eax, [ebx + eax*2]
sub eax, ecx
add eax, edx
lea edx, [eax + eax*2]
shl edx, 6
add edx, esi
push edx
call fcn.10003be0
add esp, 4
test eax, eax
je 0x10005bbe
mov eax, dword [0x100491a8]
mov ecx, dword [0x100491b8]
mov edi, dword [0x100491a4]
lea edx, [eax + ecx]
imul edx, dword [0x100491b4]
add edi, eax
add edi, edi
sub edi, edx
sub edi, ecx
add edi, eax
shl edi, 7
add edi, esi
push edi
call fcn.10003020
add esp, 4
test eax, eax
je 0x10005bbe
mov ecx, dword [0x100491b4]
mov edx, dword [0x100491a4]
mov edi, dword [0x100491ac]
imul edx, ecx
imul edx, edi
mov eax, ecx
sub eax, edx
mov edx, dword [0x100491b8]
mov ebx, edx
imul ebx, edx
sub eax, ebx
sub eax, 2
imul eax, dword [0x100491a8]
add eax, dword [0x100491b0]
add eax, ecx
add eax, edx
add eax, edi
lea eax, [eax + eax*2]
shl eax, 7
add eax, esi
call fcn.10003640
test eax, eax
jne 0x10005bd1
push esi
call fcn.100049f0
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50
ret
mov eax, dword [esi]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x10005c86
cmp dword [esi + 0x14], 0
je 0x10005c36
mov eax, dword [0x100491b4]
mov edx, dword [0x100491b8]
mov edi, eax
sub edi, edx
inc edi
imul edi, eax
mov eax, dword [0x100491a8]
inc eax
imul eax, dword [0x100491a4]
add edi, eax
mov eax, dword [0x100491b0]
lea eax, [eax + eax*2]
sub edi, eax
sub edi, edx
sub edi, dword [0x100491ac]
mov eax, esi
lea ecx, [ecx + edi*2]
add ecx, dword [esp + 0x14]
pop edi
mov dword [0x1004bce8], ecx
mov dword [esi + 0x10], 1
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
mov eax, dword [0x100491a8]
mov edi, dword [0x100491b0]
mov edx, eax
imul edx, dword [0x100491b4]
lea edx, [edx + edi*2 + 4]
imul edx, eax
mov eax, dword [0x100491ac]
mov edi, 1
sub edi, eax
imul edi, dword [0x100491a4]
add edi, eax
mov eax, dword [0x100491b8]
add edi, edx
lea eax, [edi + eax*2]
lea ecx, [ecx + eax*2]
add ecx, eax
add ecx, dword [esp + 0x14]
pop edi
mov dword [esi + 0x38], ecx
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
pop edi
mov dword [esi + 0x38], 0
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret