Function at 0x404910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x74], edi
je 0x404bb2
mov ecx, dword [esi + 0xa0]
mov eax, dword [esi + 0x9c]
mov dword [esp + 0x14], ecx
push ebp
lea ecx, [esi + 4]
mov dword [esp + 0x14], eax
call fcn.0040a8a0
lea ecx, [esi + 0x3c]
mov dword [esp + 0x30], eax
call fcn.0040a8a0
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x78]
mov dword [esp + 0x1c], edi
lea edx, [eax*4]
mov eax, dword [esi + 0x7c]
cmp eax, edi
mov dword [esp + 0x24], edx
jle 0x404aec
push ebx
mov dword [esp + 0x24], edi
mov ecx, dword [esi + 0x98]
mov eax, dword [esi + 0x94]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0xc8]
mov dword [esp + 0x10], eax
xor eax, eax
mov al, byte [ecx + edx]
xor edx, edx
mov dl, byte [ecx + edi]
mov ecx, dword [esi + 0x78]
add eax, edx
xor ebp, ebp
test ecx, ecx
jle 0x404a9e
mov ecx, eax
and ecx, 0xfffffffe
mov dword [esp + 0x2c], ecx
jmp 0x4049bb
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 0xc8]
mov edi, dword [esp + 0x14]
xor edx, edx
mov ebx, dword [esi + 0x7c]
mov dl, byte [eax + ebp]
lea ecx, [ecx + edx*2]
xor edx, edx
mov dl, byte [eax + edi]
mov edi, dword [esp + 0x10]
shl ecx, 7
add ecx, edx
xor edx, edx
mov dl, byte [eax + edi]
mov edi, dword [esp + 0x20]
add ecx, edx
xor edx, edx
mov dl, byte [eax + edi]
lea edi, [ecx + edx - 0x80]
mov eax, edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
imul eax, ebx
cdq
and edx, 0xff
add eax, edx
mov ecx, eax
mov eax, edi
sar ecx, 8
and eax, 0x800000ff
jns 0x404a21
dec eax
or eax, 0xffffff00
inc eax
mov edi, dword [esi + 0x78]
imul eax, edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
cmp ecx, ebx
jge 0x404a66
cmp eax, edi
jge 0x404a66
imul ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
add edx, ecx
mov ecx, dword [esp + 0x24]
lea eax, [edx + eax*4]
lea edx, [ecx + ebp*4]
mov ecx, dword [esp + 0x34]
add ecx, edx
mov dl, byte [eax]
mov byte [ecx], dl
mov dl, byte [eax + 1]
mov byte [ecx + 1], dl
mov al, byte [eax + 2]
mov byte [ecx + 2], al
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0xbc]
mov ebx, dword [esi + 0xc0]
mov eax, dword [esi + 0x78]
add ecx, edx
mov edx, dword [esp + 0x14]
sub edx, ebx
and ecx, 0xff
and edx, 0xff
inc ebp
cmp ebp, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
jl 0x4049b7
mov eax, dword [esi + 0xb4]
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0xb8]
add eax, edx
and eax, 0xff
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
add edi, edx
add ecx, eax
mov eax, dword [esp + 0x20]
and ecx, 0xff
inc eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x7c]
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
jl 0x404971
pop ebx
mov ecx, esi
call fcn.00403d50
fmul qword [0x4eab30]
fcomp qword [0x4eab28]
fnstsw ax
test ah, 0x41
jne 0x404b14
mov eax, dword [esi + 0xb0]
neg eax
mov dword [esi + 0xb0], eax
mov ecx, dword [esi + 0xac]
mov edx, dword [esi + 0x94]
mov eax, dword [esi + 0x98]
add edx, ecx
mov dword [esi + 0x94], edx
mov edx, dword [esi + 0xb0]
add eax, edx
mov ecx, esi
mov dword [esi + 0x98], eax
call fcn.00403d50
fmul qword [0x4eab30]
fcomp qword [0x4eab28]
fnstsw ax
test ah, 0x41
jne 0x404b64
mov eax, dword [esi + 0xa8]
neg eax
mov dword [esi + 0xa8], eax
mov ecx, dword [esi + 0x98]
mov edx, dword [esi + 0x94]
mov ebp, dword [esi + 0xa0]
mov edi, dword [esi + 0x9c]
mov eax, 0xff
and ecx, eax
and edx, eax
mov dword [esi + 0x98], ecx
mov ecx, dword [esi + 0xa8]
mov dword [esi + 0x94], edx
mov edx, dword [esi + 0xa4]
add ecx, ebp
add edx, edi
and ecx, eax
and edx, eax
mov dword [esi + 0xa0], ecx
mov dword [esi + 0x9c], edx
pop ebp
pop edi
pop esi
add esp, 0x28
ret