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

Disassembly:
push 0xffffffffffffffff
push 0x4a5fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x28], edi
mov ebp, dword [esp + 0x74]
xor eax, eax
movsx ecx, word [edi + 8]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 4]
mov esi, dword [ebp + 8]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], esi
movsx eax, ax
sub eax, ecx
mov byte [esp + 0x74], 1
cdq
and edx, 0xf
add eax, edx
mov ebx, eax
movsx eax, si
sub eax, ecx
cdq
movsx ecx, word [edi + 0xa]
and edx, 0xf
add eax, edx
sar eax, 4
mov dword [esp + 0x30], eax
movsx eax, word [esp + 0x46]
sub eax, ecx
cdq
and edx, 0xf
add eax, edx
mov esi, eax
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
movsx eax, word [esp + 0x42]
sub eax, ecx
cdq
and edx, 0xf
add edx, eax
sar esi, 4
sar edx, 4
sar ebx, 4
cmp dx, si
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x34], edx
jg 0x47080b
jmp 0x47051c
mov ebx, dword [esp + 0x20]
mov ax, word [esp + 0x30]
mov dword [esp + 0x2c], ebx
cmp word [esp + 0x20], ax
jg 0x4707fd
movsx ecx, word [edi + 4]
movsx eax, dx
imul ecx, eax
movsx eax, bx
add ecx, eax
mov eax, dword [edi]
lea eax, [eax + ecx*4]
mov dword [esp + 0x48], eax
mov ecx, dword [eax]
mov dword [esp + 0x4c], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x470558
mov ecx, dword [ecx]
jmp 0x47055a
xor ecx, ecx
mov esi, ecx
test esi, esi
mov dword [esp + 0x50], esi
je 0x470568
mov ecx, dword [esi]
jmp 0x47056a
xor ecx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], 0
mov byte [esp + 0x60], 0
mov byte [esp + 0x58], 0
mov byte [esp + 0x59], 0
mov ecx, dword [eax]
test ecx, ecx
je 0x4707e9
test esi, esi
je 0x470599
mov dword [esp + 0x5c], esi
jmp 0x47059e
mov byte [esp + 0x59], 1
mov edi, dword [esp + 0x78]
mov ecx, dword [esp + 0x18]
mov ebx, edi
mov byte [esp + 0x60], 0
sub ebx, ecx
cmp dword [eax], 0
je 0x4707e1
cmp esi, dword [esp + 0x5c]
jne 0x4705ca
mov al, byte [esp + 0x60]
test al, al
jne 0x4707e1
cmp esi, ebp
je 0x4707c7
push ebp
mov ecx, esi
call fcn.0042d380
test al, al
je 0x4707c7
mov eax, dword [esp + 0x18]
inc eax
dec ebx
cmp eax, edi
mov dword [esp + 0x18], eax
jg 0x47061d
mov ecx, dword [0x4dc3a8]
mov eax, ebx
cdq
idiv ecx
mov edi, ecx
mov ecx, dword [esp + 0x28]
push eax
push esi
call fcn.00470460
imul eax, edi
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x78]
add ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x14]
lea edx, [ecx + eax]
cmp edx, edi
jg 0x47082b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4706bd
mov ecx, ebp
call fcn.0042d060
test eax, eax
mov dword [esp + 0x10], eax
jge 0x47064d
neg eax
mov dword [esp + 0x10], eax
mov ax, word [ebp + 8]
mov cx, word [ebp + 4]
cmp cx, ax
jg 0x47066a
mov dx, word [ebp + 0xa]
cmp dx, word [ebp + 6]
jl 0x47066a
sub eax, ecx
mov edx, eax
jmp 0x47066c
xor edx, edx
mov ax, word [ebp + 4]
cmp ax, word [ebp + 8]
jg 0x470687
mov ax, word [ebp + 0xa]
mov cx, word [ebp + 6]
cmp ax, cx
jl 0x470687
sub eax, ecx
jmp 0x470689
xor eax, eax
movsx ecx, ax
movsx edx, dx
imul ecx, edx
mov dword [esp + 0x24], ecx
fild dword [esp + 0x24]
fmul qword [0x4dc348]
fstp dword [esp + 0x1c]
fild dword [esp + 0x10]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x4706bd
mov byte [esp + 0x74], 0
jmp 0x4707c7
mov al, byte [esp + 0x74]
test al, al
je 0x4707c7
mov al, byte [0x4dc388]
test al, al
je 0x4706fe
mov ax, word [esi + 4]
cmp ax, word [esi + 8]
jg 0x4706ed
mov ax, word [esi + 0xa]
mov cx, word [esi + 6]
cmp ax, cx
jl 0x4706ed
sub eax, ecx
jmp 0x4706ef
xor eax, eax
movsx ecx, ax
cmp ecx, dword [0x4dc378]
jle 0x4707c7
mov ecx, esi
call fcn.0042d060
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x24], ecx
jge 0x470715
neg ecx
mov dword [esp + 0x24], ecx
mov al, byte [0x4dc388]
test al, al
je 0x470767
mov edx, dword [esp + 0x10]
sub edx, ecx
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 1
je 0x470741
mov byte [esp + 0x74], 0
jmp 0x4707c7
mov eax, dword [esp + 0x14]
test eax, eax
jg 0x47082f
movsx eax, word [esi + 0x14]
mov edx, dword [0x4dc368]
imul edx, ecx
mov ecx, eax
imul ecx, eax
cmp ecx, edx
jg 0x47082f
mov ax, word [esi + 8]
mov cx, word [esi + 4]
cmp cx, ax
jg 0x470784
mov dx, word [esi + 0xa]
cmp dx, word [esi + 6]
jl 0x470784
sub eax, ecx
mov ecx, eax
jmp 0x470786
xor ecx, ecx
mov ax, word [esi + 4]
cmp ax, word [esi + 8]
jg 0x4707a1
mov ax, word [esi + 0xa]
mov si, word [esi + 6]
cmp ax, si
jl 0x4707a1
sub eax, esi
jmp 0x4707a3
xor eax, eax
movsx edx, ax
fild dword [esp + 0x24]
movsx eax, cx
imul edx, eax
mov dword [esp + 0x38], edx
fild dword [esp + 0x38]
fmul qword [0x4dc358]
fcompp
fnstsw ax
test ah, 0x41
je 0x47082f
lea ecx, [esp + 0x48]
call fcn.004403e0
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x34]
jmp 0x4705af
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
inc ebx
cmp bx, word [esp + 0x30]
mov dword [esp + 0x2c], ebx
jle 0x470530
mov esi, dword [esp + 0x3c]
inc edx
cmp dx, si
mov dword [esp + 0x34], edx
jle 0x470518
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx]
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret 8
add eax, ecx
jmp 0x470816
lea eax, [edi + 1]
jmp 0x470816