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

Disassembly:
sub esp, 0x28
mov eax, dword [0x45157c]
push ebx
push ebp
push esi
mov esi, dword [eax + 0xb0]
push edi
mov edi, dword [esp + 0x3c]
xor edx, edx
mov ecx, edi
mov dword [esp + 0x10], edx
sub ecx, esi
mov dword [eax + 0x504], ecx
mov eax, dword [0x45157c]
cmp dword [eax + 0x504], edx
je 0x41b8bb
mov dword [esp + 0x10], 1
mov ebx, dword [esp + 0x40]
mov esi, dword [eax + 0xb4]
mov ecx, ebx
sub ecx, esi
mov dword [eax + 0x508], ecx
mov ecx, dword [0x45157c]
mov ebp, dword [ecx + 0x508]
cmp ebp, edx
mov dword [esp + 0x30], ebp
je 0x41b8e7
inc dword [esp + 0x10]
cmp word [esp + 0x10], dx
jne 0x41b91d
mov eax, dword [0x451578]
mov esi, dword [eax + 0x2c]
test esi, esi
jle 0x41b91d
mov eax, dword [eax + 0x30]
add eax, 0x10
cmp dword [eax - 4], 0
jne 0x41b915
cmp dword [eax], 0
jne 0x41b915
inc edx
add eax, 0x54
cmp edx, esi
jl 0x41b900
jmp 0x41b91d
mov dword [esp + 0x10], 1
mov edx, dword [ecx + 0xb0]
mov eax, dword [ecx + 0xb4]
mov dword [esp + 0x18], edx
mov edx, dword [ecx + 0x504]
mov dword [esp + 0x1c], eax
mov dword [ecx + 0xb0], edi
mov eax, dword [0x45157c]
lea ecx, [edi - 0x40]
mov dword [esp + 0x28], edx
mov dword [eax + 0x1b4], ecx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x1b4]
test ecx, ecx
jge 0x41b96f
mov ecx, dword [eax + 0x1c4]
mov dword [eax + 0x1b4], ecx
mov eax, dword [0x45157c]
mov dword [eax + 0xb4], ebx
mov ecx, dword [0x45157c]
lea eax, [ebx - 0x10]
mov dword [ecx + 0x1b8], eax
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x1b8]
test ecx, ecx
jge 0x41b9a4
mov ecx, dword [eax + 0x1c8]
mov dword [eax + 0x1b8], ecx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x19c]
lea ecx, [ecx + edi + 0x40]
mov dword [eax + 0x1bc], ecx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x1bc]
mov esi, dword [eax + 0xa8]
cmp ecx, esi
jle 0x41b9da
mov ecx, dword [eax + 0x1cc]
mov dword [eax + 0x1bc], ecx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x1a0]
lea ecx, [ecx + ebx + 0x10]
mov dword [eax + 0x1c0], ecx
mov eax, dword [0x45157c]
mov ecx, dword [eax + 0x1c0]
mov esi, dword [eax + 0xac]
cmp ecx, esi
jle 0x41ba10
mov ecx, dword [eax + 0x1d0]
mov dword [eax + 0x1c0], ecx
mov eax, dword [0x45157c]
mov ecx, 0xffff8000
mov dword [esp + 0x34], 0
mov word [eax + 0x502], cx
mov eax, dword [0x45157c]
mov word [eax + 0x4f0], cx
mov ecx, dword [0x45157c]
mov esi, dword [ecx + 0x3c]
mov eax, dword [ecx + 0x1278]
test esi, esi
mov dword [esp + 0x14], eax
jle 0x41bbe3
jmp 0x41ba5d
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
cmp dword [eax], 0
jne 0x41ba70
mov ecx, dword [eax + 8]
add eax, 8
test ecx, ecx
je 0x41ba62
mov dword [esp + 0x14], eax
mov esi, dword [eax]
cmp word [esi + 0x96], 0xfffe
je 0x41ba85
mov word [esi + 0x96], 0xffff
cmp word [esp + 0x10], 0
je 0x41bbab
mov eax, dword [esi + 0x78]
test ah, 8
je 0x41bae1
test al, 0x10
jne 0x41baaf
mov ecx, dword [esi + 0x4c]
mov eax, dword [esi + 0x54]
add ecx, edx
add eax, ebp
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x54], eax
jmp 0x41bac4
mov ecx, dword [esi + 0x54]
mov eax, dword [esi + 0x4c]
add ecx, ebp
add eax, edx
push ecx
push eax
push esi
call fcn.00410120
add esp, 0xc
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x41bbbe
test byte [esi + 0x78], 2
jne 0x41bbbe
jmp 0x41bbbb
mov edx, dword [0x451578]
mov ecx, dword [esi + 0x84]
cmp ecx, dword [edx + 0x2c]
jge 0x41bac4
mov eax, dword [esp + 0x18]
mov edx, dword [edx + 0x30]
mov dword [esp + 0x24], eax
lea eax, [ecx*8]
sub eax, ecx
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], ebx
lea ecx, [eax + eax*2]
mov ebx, dword [edx + ecx*4 + 0x2c]
lea edi, [edx + ecx*4]
test bl, 1
je 0x41bb41
fild dword [esp + 0x18]
fmul dword [edi + 0x30]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x3c]
mov dword [esp + 0x24], eax
fmul dword [edi + 0x30]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x20], eax
test bl, 2
je 0x41bb64
fild dword [esp + 0x1c]
fmul dword [edi + 0x34]
call sub.MSVCRT.dll__ftol
fild dword [esp + 0x40]
mov ebp, eax
fmul dword [edi + 0x34]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x4c]
mov ecx, dword [edi + 0xc]
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x28]
sub eax, ebx
mov ebx, dword [edi + 0x10]
add eax, edx
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x30]
add eax, ecx
mov ecx, dword [esi + 0x54]
sub ecx, ebx
sub ecx, edx
mov dl, byte [esi + 0x78]
add ecx, ebp
add ecx, edi
test dl, 0x10
jne 0x41bab9
mov dword [esi + 0x4c], eax
mov dword [esi + 0x54], ecx
jmp 0x41bac4
test byte [esi + 0x78], 2
jne 0x41bbbe
mov eax, dword [esi + 0x90]
test eax, eax
je 0x41bbbe
push esi
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [0x45157c]
mov edx, dword [esp + 0x34]
add eax, 8
mov esi, dword [ecx + 0x3c]
inc edx
cmp edx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x34], edx
jl 0x41ba4d
mov eax, dword [ecx]
push eax
call sub.MMFS2.dll_Ordinal_59
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
jmp fcn.004010a0