Function at 0x418709
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x25c]
test al, al
je 0x418791
cmp al, 3
jne 0x418809
mov eax, dword [esi + 0x22c]
push ebp
movsx edx, word [esi + 0x232]
movsx ecx, word [eax + 2]
mov eax, dword [esi + 0x21c]
push 3
sar eax, 0xa
sub eax, ecx
mov ecx, dword [esi + 0x218]
sub eax, edx
mov edx, dword [esi + 0x19c]
mov word [esp + 0x3e], ax
mov eax, dword [esi + 0x220]
sar ecx, 0xa
sar edx, 0xa
mov word [esp + 0x3c], cx
mov ecx, dword [esi + 0x1a0]
sub edx, eax
mov eax, dword [esi + 0x258]
mov word [esp + 0x1c], dx
mov edx, dword [esi + 0x224]
sar ecx, 0xa
sub ecx, edx
push eax
mov word [esp + 0x22], cx
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
jmp 0x418801
mov eax, dword [esi + 0x22c]
mov ecx, dword [esi + 0x21c]
movsx edx, word [esi + 0x232]
movsx eax, word [eax + 2]
sar ecx, 0xa
add eax, ecx
mov ecx, dword [esi + 0x218]
add eax, edx
mov edx, dword [esi + 0x19c]
mov word [esp + 0x12], ax
mov eax, dword [esi + 0x220]
sar ecx, 0xa
sar edx, 0xa
mov word [esp + 0x10], cx
mov ecx, dword [esi + 0x1a0]
add edx, eax
mov eax, dword [esi + 0x258]
mov word [esp + 0x18], dx
mov edx, dword [esi + 0x224]
sar ecx, 0xa
add ecx, edx
push ebp
mov word [esp + 0x1e], cx
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00418400
mov eax, dword [esi + 0x1a0]
mov ecx, dword [esi + 0x19c]
sar eax, 0xa
add ax, word [esi + 0x1ae]
sar ecx, 0xa
mov word [esp + 0x1e], ax
mov eax, dword [esi + 0x1f0]
add cx, word [esi + 0x1ac]
sar eax, 0xa
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x1ec]
mov word [esp + 0x1c], cx
mov edi, dword [eax + 4]
test edi, edi
je 0x418d07
mov ebx, dword [edi + 0xe4]
xor eax, eax
test ebx, ebx
setne al
test eax, eax
je 0x418d07
mov eax, dword [esi + 0x10]
movsx edx, word [ebp]
movsx ebx, word [eax + 0x18]
imul ebx, edx
sar ebx, 0xa
mov dword [esp + 0x18], edx
mov edx, ebx
mov ebx, dword [esp + 0x1c]
sub ebx, edx
movsx edx, word [ebp + 2]
movsx ebp, word [eax + 0x1a]
imul ebp, edx
sar ebp, 0xa
mov dword [esp + 0x14], edx
mov edx, ebp
mov ebp, dword [esp + 0x1e]
sub ebp, edx
mov dx, word [esi + 0x1b0]
add dx, cx
mov cx, word [esi + 0x1b2]
mov word [esp + 0x24], dx
add cx, word [esp + 0x1e]
movsx edx, word [eax + 0x18]
imul edx, dword [esp + 0x18]
mov word [esp + 0x26], cx
mov ecx, dword [esp + 0x24]
sar edx, 0xa
sub ecx, edx
add ebx, 0x190
movsx edx, word [eax + 0x1a]
imul edx, dword [esp + 0x14]
add ecx, 0x190
add ebp, 0x12c
mov word [esp + 0x34], cx
mov ecx, dword [esp + 0x26]
sub word [esp + 0x34], bx
sar edx, 0xa
sub ecx, edx
mov dx, word [eax + 6]
mov eax, dword [eax + 0x14]
add ecx, 0x12c
sub cx, bp
mov dword [esp + 0x14], eax
test dl, 0x10
mov word [esp + 0x36], cx
je 0x418a61
test eax, eax
je 0x4189d2
mov dx, word [esi + 0x18]
test dl, 2
movsx eax, cx
je 0x418935
neg eax
test dl, 1
movsx edx, word [esp + 0x34]
je 0x418941
neg edx
mov cl, 4
mov byte [esp + 0x37], 0x1f
mov byte [esp + 0x35], cl
mov byte [esp + 0x34], cl
mov byte [esp + 0x36], cl
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x36]
push ecx
mov ecx, dword [esi + 0x32]
push ecx
mov ecx, dword [esi + 0x2e]
push ecx
mov ecx, dword [esi + 0x2a]
push ecx
mov ecx, dword [esi + 0x26]
push ecx
mov ecx, dword [esi + 0x22]
push ecx
mov ecx, dword [esi + 0x1e]
push ecx
mov ecx, dword [esi + 0x1a]
push ecx
mov ecx, dword [esi + 0x48]
push ecx
mov ecx, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x40]
push ecx
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, dword [esp + 0x48]
push ecx
movsx ecx, word [edi + 2]
push ecx
movsx ecx, word [edi]
push ecx
push 0
push 0
push edi
push eax
mov eax, dword [esp + 0x80]
push edx
movsx edx, word [eax + 2]
movsx ecx, bp
add edx, ecx
mov ecx, dword [esp + 0x88]
push edx
movsx edx, word [eax]
movsx eax, bx
add edx, eax
push edx
push ecx
call fcn.0044df10
add esp, 0x60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov ax, word [esi + 0x18]
test al, 2
movsx edx, cx
je 0x4189df
neg edx
test al, 1
movsx eax, word [esp + 0x34]
je 0x4189ea
neg eax
mov cl, 4
mov byte [esp + 0x36], 1
mov byte [esp + 0x35], cl
mov byte [esp + 0x34], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x37], 0x1f
push ecx
mov ecx, dword [esi + 0x36]
push ecx
mov ecx, dword [esi + 0x32]
push ecx
mov ecx, dword [esi + 0x2e]
push ecx
mov ecx, dword [esi + 0x2a]
push ecx
mov ecx, dword [esi + 0x26]
push ecx
mov ecx, dword [esi + 0x22]
push ecx
mov ecx, dword [esi + 0x1e]
push ecx
mov ecx, dword [esi + 0x1a]
push ecx
movsx ecx, word [edi + 2]
push ecx
movsx ecx, word [edi]
push ecx
push 0
push 0
push edi
push edx
push eax
mov eax, dword [esp + 0x70]
movsx ecx, bp
movsx edx, word [eax + 2]
add edx, ecx
mov ecx, dword [esp + 0x74]
push edx
movsx edx, word [eax]
movsx eax, bx
add edx, eax
push edx
push ecx
call fcn.0044a140
add esp, 0x4c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
test eax, eax
je 0x418c82
test dh, 2
je 0x418bd7
push eax
call fcn.004518a0
cdq
and edx, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x51eb851f
mul dword [0x52ab34]
mov eax, edx
xor edx, edx
sar ecx, 5
shr eax, 5
div ecx
mov dword [esp + 0x1c], edx
mov edx, dword [esi + 0x10]
mov eax, dword [edx + 0x14]
push eax
call fcn.004518b0
cdq
fild dword [esp + 0x20]
and edx, 0x1f
add eax, edx
mov ecx, eax
mov eax, 0x51eb851f
mul dword [0x52ab34]
fmul dword [0x4aa62c]
fstp dword [esp + 0x1c]
mov eax, edx
xor edx, edx
sar ecx, 5
shr eax, 5
div ecx
mov edx, dword [esi + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [edx + 0x14]
push eax
call fcn.004518a0
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0x10]
fild dword [esp + 0x24]
mov edx, dword [ecx + 0x14]
push edx
fdivr dword [esp + 0x24]
fadd dword [esi + 0x3c]
fstp dword [esp + 0x24]
fild dword [esp + 0x2c]
fmul dword [0x4aa62c]
fstp dword [esp + 0x28]
call fcn.004518b0
mov dword [esp + 0x2c], eax
mov ax, word [esi + 0x18]
fild dword [esp + 0x2c]
movsx edx, word [esp + 0x46]
fdivr dword [esp + 0x28]
add esp, 0x10
test al, 2
fadd dword [esi + 0x40]
fstp dword [esp + 0x1c]
je 0x418b36
neg edx
test al, 1
movsx eax, word [esp + 0x34]
je 0x418b41
neg eax
mov cl, 4
mov byte [esp + 0x36], 7
mov byte [esp + 0x35], cl
mov byte [esp + 0x34], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x37], 0x1e
push ecx
mov ecx, dword [esi + 0x36]
push ecx
mov ecx, dword [esi + 0x32]
push ecx
mov ecx, dword [esi + 0x2e]
push ecx
mov ecx, dword [esi + 0x2a]
push ecx
mov ecx, dword [esi + 0x26]
push ecx
mov ecx, dword [esi + 0x22]
push ecx
mov ecx, dword [esi + 0x1e]
push ecx
mov ecx, dword [esi + 0x1a]
push ecx
mov ecx, dword [esi + 0x48]
push ecx
mov ecx, dword [esi + 0x44]
push ecx
mov ecx, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x14]
push ecx
movsx ecx, word [edi + 2]
push ecx
movsx ecx, word [edi]
push ecx
push 0
push 0
push edi
push edx
push eax
mov eax, dword [esp + 0x84]
movsx ecx, bp
movsx edx, word [eax + 2]
add edx, ecx
mov ecx, dword [esp + 0x88]
push edx
movsx edx, word [eax]
movsx eax, bx
add edx, eax
push edx
push ecx
call fcn.0044df10
add esp, 0x60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov dx, word [esi + 0x18]
test dl, 2
movsx eax, cx
je 0x418be5
neg eax
test dl, 1
movsx edx, word [esp + 0x34]
je 0x418bf1
neg edx
mov cl, 4
mov byte [esp + 0x37], 0x1e
mov byte [esp + 0x35], cl
mov byte [esp + 0x34], cl
mov byte [esp + 0x36], cl
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, dword [esi + 0x36]
push ecx
mov ecx, dword [esi + 0x32]
push ecx
mov ecx, dword [esi + 0x2e]
push ecx
mov ecx, dword [esi + 0x2a]
push ecx
mov ecx, dword [esi + 0x26]
push ecx
mov ecx, dword [esi + 0x22]
push ecx
mov ecx, dword [esi + 0x1e]
push ecx
mov ecx, dword [esi + 0x1a]
push ecx
mov ecx, dword [esi + 0x48]
push ecx
mov ecx, dword [esi + 0x44]
push ecx
mov ecx, dword [esi + 0x40]
push ecx
mov ecx, dword [esi + 0x3c]
push ecx
mov ecx, dword [esp + 0x48]
push ecx
movsx ecx, word [edi + 2]
push ecx
movsx ecx, word [edi]
push ecx
push 0
push 0
push edi
push eax
mov eax, dword [esp + 0x80]
push edx
movsx edx, word [eax + 2]
movsx ecx, bp
add edx, ecx
mov ecx, dword [esp + 0x88]
push edx
movsx edx, word [eax]
movsx eax, bx
add edx, eax
push edx
push ecx
call fcn.0044df10
add esp, 0x60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
mov ax, word [esi + 0x18]
test al, 2
movsx edx, cx
je 0x418c8f
neg edx
test al, 1
movsx eax, word [esp + 0x34]
je 0x418c9a
neg eax
mov cl, 4
mov byte [esp + 0x36], 1
mov byte [esp + 0x35], cl
mov byte [esp + 0x34], cl
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x37], 0x1e
push ecx
mov ecx, dword [esi + 0x36]
push ecx
mov ecx, dword [esi + 0x32]
push ecx
mov ecx, dword [esi + 0x2e]
push ecx
mov ecx, dword [esi + 0x2a]
push ecx
mov ecx, dword [esi + 0x26]
push ecx
mov ecx, dword [esi + 0x22]
push ecx
mov ecx, dword [esi + 0x1e]
push ecx
mov ecx, dword [esi + 0x1a]
push ecx
movsx ecx, word [edi + 2]
push ecx
movsx ecx, word [edi]
push ecx
push 0
push 0
push edi
push edx
push eax
mov eax, dword [esp + 0x70]
movsx ecx, bp
movsx edx, word [eax + 2]
add edx, ecx
mov ecx, dword [esp + 0x74]
push edx
movsx edx, word [eax]
movsx eax, bx
add edx, eax
push edx
push ecx
call fcn.0044a140
add esp, 0x4c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8