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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a6508
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
lea esi, [eax + 8]
mov ax, word [ecx + 0xc]
lea edi, [ecx + 8]
mov cx, word [esi + 4]
cmp ax, cx
jl 0x478979
mov eax, ecx
mov dx, word [edi]
mov bx, word [esi]
cmp dx, bx
jg 0x478986
mov edx, ebx
movsx edx, dx
movsx ebp, ax
mov ecx, esi
sub ebp, edx
call fcn.00402110
test al, al
jne 0x4789a7
mov ax, word [esi + 6]
mov cx, word [esi + 2]
sub eax, ecx
mov ebx, eax
jmp 0x4789a9
xor ebx, ebx
mov ecx, edi
call fcn.00402110
test al, al
jne 0x4789c0
mov ax, word [edi + 6]
mov cx, word [edi + 2]
sub eax, ecx
jmp 0x4789c2
xor eax, eax
movsx eax, ax
movsx ecx, bx
shl eax, 1
cmp ecx, eax
jle 0x478ce3
mov ecx, esi
call fcn.00402110
test al, al
jne 0x4789e8
mov ax, word [esi + 4]
mov cx, word [esi]
sub eax, ecx
jmp 0x4789ea
xor eax, eax
movsx eax, ax
lea edx, [ebp + ebp]
cmp edx, eax
jge 0x478a18
mov ecx, edi
call fcn.00402110
test al, al
jne 0x478a0b
mov ax, word [edi + 4]
mov cx, word [edi]
sub eax, ecx
jmp 0x478a0d
xor eax, eax
movsx ecx, ax
cmp ebp, ecx
jl 0x478ce3
mov ecx, esi
call fcn.00402110
test al, al
jne 0x478a31
mov ax, word [esi + 6]
mov cx, word [esi + 2]
sub eax, ecx
mov ebx, eax
jmp 0x478a33
xor ebx, ebx
mov ecx, esi
call fcn.00402110
test al, al
jne 0x478a4b
mov ax, word [esi + 4]
mov cx, word [esi]
sub eax, ecx
xor ebp, ebp
jmp 0x478a4f
xor ebp, ebp
xor eax, eax
movsx edx, ax
movsx eax, bx
shl edx, 1
cmp eax, edx
jle 0x478a70
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
add esp, 0x60
ret
mov bx, word [edi + 2]
mov si, word [esi + 6]
cmp bx, si
mov ecx, ebx
jl 0x478a81
mov ecx, esi
mov eax, dword [esp + 0x7c]
mov si, word [edi]
movsx ecx, cx
fld dword [eax + 0x80]
fld dword [eax + 0x84]
movsx edx, si
mov dword [esp + 0x74], ecx
mov cx, word [edi + 4]
fild dword [esp + 0x74]
mov dword [esp + 0x74], edx
cmp si, cx
fild dword [esp + 0x74]
fmul st(3)
fadd st(2)
fsubp st(1)
fmul qword [str.333333]
fstp qword [esp + 0x40]
fstp st(0)
fstp st(0)
jg 0x478ad3
cmp word [edi + 6], bx
jl 0x478ad3
mov eax, ecx
sub eax, esi
jmp 0x478ad5
xor eax, eax
movsx edx, si
movsx eax, ax
sub edx, eax
mov dword [esp + 0x28], edx
movsx eax, cx
movsx edx, si
add eax, edx
cdq
sub eax, edx
sar eax, 1
cmp si, cx
mov dword [esp + 0x24], eax
jg 0x478b03
cmp word [edi + 6], bx
jl 0x478b03
mov eax, ecx
sub eax, esi
jmp 0x478b05
xor eax, eax
movsx ecx, cx
movsx eax, ax
add ecx, eax
mov dword [esp + 0x18], ebp
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
mov eax, dword [ecx + 0x1c]
lea ecx, [esp + 0x48]
add eax, 4
mov dword [esp + 0x1c], ebp
push eax
mov byte [esp + 0x80], 0
mov byte [esp + 0x17], 0
mov byte [esp + 0x78], 0
xor bl, bl
call fcn.0040f9a0
mov eax, dword [esp + 0x50]
cmp eax, ebp
je 0x478b57
mov dword [esp + 0x5c], eax
jmp 0x478b5c
mov byte [esp + 0x59], 1
mov byte [esp + 0x60], 0
mov edx, dword [esp + 0x48]
cmp dword [edx], ebp
je 0x478ce3
cmp eax, dword [esp + 0x5c]
jne 0x478b7f
mov cl, byte [esp + 0x60]
test cl, cl
jne 0x478ce3
movsx ecx, word [eax + 0x14]
mov dword [esp + 0x34], eax
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x78], eax
xor esi, esi
cmp ecx, ebp
mov dword [esp + 0x6c], ebp
jle 0x478cc9
mov bp, word [esp + 0x7a]
mov di, ax
mov eax, dword [esp + 0x28]
movsx edx, di
cmp edx, eax
movsx ecx, bp
jl 0x478bf1
cmp edx, dword [esp + 0x24]
jge 0x478bf1
mov al, byte [esp + 0x7c]
test al, al
jne 0x478bf1
mov al, byte [esp + 0x74]
test al, al
je 0x478be2
cmp ecx, dword [esp + 0x14]
jle 0x478bd6
mov dword [esp + 0x14], ecx
cmp ecx, dword [esp + 0x18]
jge 0x478c2a
mov dword [esp + 0x18], ecx
jmp 0x478c2a
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
mov byte [esp + 0x74], 1
jmp 0x478c2a
mov al, byte [esp + 0x74]
test al, al
je 0x478c2a
mov eax, dword [esp + 0x14]
sub eax, dword [esp + 0x18]
mov dword [esp + 0x74], eax
fild dword [esp + 0x74]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x478c25
mov al, byte [esp + 0x13]
test al, al
jne 0x478a5b
mov byte [esp + 0x7c], 1
mov byte [esp + 0x74], 0
cmp edx, dword [esp + 0x2c]
jg 0x478c64
cmp edx, dword [esp + 0x24]
jle 0x478c64
mov al, byte [esp + 0x13]
test al, al
jne 0x478c64
test bl, bl
je 0x478c58
cmp ecx, dword [esp + 0x1c]
jle 0x478c4c
mov dword [esp + 0x1c], ecx
cmp ecx, dword [esp + 0x20]
jge 0x478c98
mov dword [esp + 0x20], ecx
jmp 0x478c98
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], ecx
mov bl, 1
jmp 0x478c98
test bl, bl
je 0x478c98
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
sub ecx, eax
mov dword [esp + 0x30], ecx
fild dword [esp + 0x30]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 0x41
jne 0x478c96
mov al, byte [esp + 0x7c]
test al, al
jne 0x478a5b
mov byte [esp + 0x13], 1
xor bl, bl
mov ecx, dword [esp + 0x34]
mov eax, esi
lea edx, [esp + 0x3c]
push eax
push edx
inc esi
call fcn.00427a00
add di, word [eax]
add bp, word [eax + 2]
mov eax, dword [esp + 0x38]
cmp esi, eax
mov word [esp + 0x78], di
mov word [esp + 0x7a], bp
jl 0x478ba8
xor ebp, ebp
lea ecx, [esp + 0x48]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004403e0
mov eax, dword [esp + 0x50]
jmp 0x478b61
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret