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

Disassembly:
sub esp, 0x58
mov eax, dword [0x451578]
push ebx
push ebp
mov ebp, dword [esp + 0x64]
mov ecx, dword [eax + 0xc]
push esi
shr ecx, 5
and ecx, 1
push edi
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x74]
not ecx
shr ecx, 4
and ecx, 1
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x70]
test ecx, ecx
jne 0x4254b5
mov cl, byte [ebp + 0x2c]
mov dword [esp + 0x3c], 1
test cl, 0x10
je 0x4254bd
mov dword [esp + 0x3c], 0
mov ebx, dword [ebp + 0x2c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
mov edi, ebx
mov esi, ebx
mov dword [esp + 0x18], ecx
shr edi, 6
shr esi, 5
and edi, 1
and esi, 1
mov ecx, edi
mov dword [esp + 0x14], edx
mov edx, dword [eax + 4]
or ecx, esi
mov dword [esp + 0x40], ecx
mov ecx, dword [eax]
test bl, 3
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edx
je 0x42552a
test bl, 1
je 0x425515
fild dword [esp + 0x18]
fmul dword [ebp + 0x30]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x18], eax
test bl, 2
je 0x42552a
fild dword [esp + 0x14]
fmul dword [ebp + 0x34]
call sub.MSVCRT.dll__ftol
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 4]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 8]
add edx, ecx
test esi, esi
mov dword [esp + 0x14], edx
je 0x425555
mov eax, dword [esp + 0x18]
cdq
idiv dword [esp + 0x20]
mov dword [esp + 0x18], edx
test edi, edi
je 0x425566
mov eax, dword [esp + 0x14]
cdq
idiv dword [esp + 0x1c]
mov dword [esp + 0x14], edx
test ebx, 0x20000
je 0x4255c6
mov eax, dword [esp + 0x70]
test eax, eax
jle 0x4255be
mov ecx, dword [esp + 0x6c]
xor ebp, ebp
mov edx, dword [ecx + 0x14]
mov eax, dword [ecx + 0x18]
test edx, edx
jle 0x4255c6
lea ebx, [eax + 0x14]
mov esi, ebx
mov edi, 4
mov eax, dword [esi]
test eax, eax
je 0x4255a9
mov edx, dword [0x45154c]
push eax
push edx
call sub.MMFS2.dll_Ordinal_79
mov dword [esi], 0
add esi, 4
dec edi
jne 0x425590
mov eax, dword [esp + 0x6c]
inc ebp
add ebx, 0x2c
cmp ebp, dword [eax + 0x14]
jl 0x425589
jmp 0x4255c6
mov dword [esp + 0x3c], 1
mov ecx, dword [esp + 0x6c]
mov eax, dword [ecx + 0x2c]
test eax, 0x20000
je 0x4255e0
mov edx, dword [esp + 0x70]
test edx, edx
jne 0x425b1f
mov edx, dword [ecx + 0x14]
mov ebx, dword [ecx + 0x18]
not eax
shr eax, 2
and eax, 1
mov dword [esp + 0x50], eax
xor eax, eax
cmp edx, eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], eax
jle 0x425b1f
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 4]
mov edx, dword [esp + 0x18]
mov esi, dword [ebx + 8]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x54], eax
lea ebp, [ebx + eax*4 + 0x14]
mov eax, dword [esp + 0x38]
sub edi, edx
sub esi, ecx
test eax, eax
mov dword [esp + 0x30], ebp
jne 0x42567f
mov eax, dword [esp + 0x40]
test eax, eax
jne 0x42567f
mov ecx, dword [esp + 0x78]
add ecx, 0x60
cmp edi, ecx
jge 0x425650
mov edx, dword [esp + 0x7c]
add edx, 0x10
cmp esi, edx
jl 0x42567f
mov eax, dword [esp + 0x70]
test eax, eax
jle 0x425b04
mov eax, dword [ebp]
test eax, eax
je 0x425b04
push eax
mov eax, dword [0x45154c]
push eax
call sub.MMFS2.dll_Ordinal_79
mov dword [ebp], 0
jmp 0x425b04
mov ax, word [ebx + 0xc]
mov ecx, dword [0x451574]
and eax, 0xffff
mov edx, dword [ecx + 0x1c4]
push eax
push 0
push edx
mov dword [esp + 0x30], eax
call sub.MMFS2.dll_Ordinal_9
test eax, eax
je 0x4256b5
mov ecx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
add ecx, edi
add ebp, esi
mov dword [esp + 0x60], ecx
jmp 0x4256c1
lea eax, [edi + 1]
lea ebp, [esi + 1]
mov dword [esp + 0x60], eax
mov ecx, eax
mov eax, dword [esp + 0x40]
xor edx, edx
cmp eax, edx
mov dword [esp + 0x64], ebp
je case.default.0x4256e0
mov eax, dword [esp + 0x10]
cmp eax, 3
ja case.default.0x4256e0
jmp dword [eax*4 + 0x425b28]
cmp dword [esp + 0x48], edx
je 0x425722
cmp edi, edx
jl 0x4256f7
cmp ecx, dword [esp + 0x20]
jle 0x425722
cmp dword [esp + 0x44], edx
je 0x42571b
cmp esi, edx
jl 0x425707
cmp ebp, dword [esp + 0x1c]
jle 0x42571b
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], 3
or al, 7
mov dword [esp + 0x74], eax
jmp 0x425745
mov eax, 1
jmp 0x425737
cmp dword [esp + 0x44], edx
je 0x425745
cmp esi, edx
jl 0x425732
cmp ebp, dword [esp + 0x1c]
jle 0x425745
mov eax, 2
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], eax
or ecx, eax
mov dword [esp + 0x74], ecx
test byte [esp + 0x74], 1
jne 0x425767
mov eax, dword [ebx + 0x18]
cmp eax, edx
je 0x425767
mov ecx, dword [0x45154c]
push eax
push ecx
call sub.MMFS2.dll_Ordinal_79
mov dword [ebx + 0x18], 0
test byte [esp + 0x74], 2
jne 0x425789
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x425789
mov edx, dword [0x45154c]
push eax
push edx
call sub.MMFS2.dll_Ordinal_79
mov dword [ebx + 0x1c], 0
test byte [esp + 0x74], 4
jne case.default.0x4256e0
mov eax, dword [ebx + 0x20]
test eax, eax
je case.default.0x4256e0
push eax
mov eax, dword [0x45154c]
push eax
call sub.MMFS2.dll_Ordinal_79
mov dword [ebx + 0x20], 0
jmp case.default.0x4256e0
mov eax, dword [esp + 0x20]
cmp edi, edx
jge 0x4257c5
add edi, eax
add ecx, eax
jmp 0x4257cd
cmp ecx, eax
jle 0x4257d1
sub edi, eax
sub ecx, eax
mov dword [esp + 0x60], ecx
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], edx
and al, 0xfe
test al, 2
mov dword [esp + 0x74], eax
je case.default.0x4256e0
jmp 0x425859
mov eax, dword [esp + 0x1c]
cmp esi, edx
jge 0x4257f3
add esi, eax
add ebp, eax
jmp 0x4257fb
cmp ebp, eax
jle 0x4257ff
sub esi, eax
sub ebp, eax
mov dword [esp + 0x64], ebp
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], edx
and al, 0xfd
test al, 1
mov dword [esp + 0x74], eax
je case.default.0x4256e0
mov dword [esp + 0x10], 1
jmp case.default.0x4256e0
mov eax, dword [esp + 0x20]
cmp edi, edx
jge 0x425829
add edi, eax
add ecx, eax
jmp 0x425831
cmp ecx, eax
jle 0x425835
sub edi, eax
sub ecx, eax
mov dword [esp + 0x60], ecx
mov eax, dword [esp + 0x1c]
cmp esi, edx
jge 0x425843
add esi, eax
add ebp, eax
jmp 0x42584b
cmp ebp, eax
jle 0x42584f
sub esi, eax
sub ebp, eax
mov dword [esp + 0x64], ebp
mov eax, dword [esp + 0x74]
and al, 0xfb
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], 2
xor ecx, ecx
xor eax, eax
cmp word [ebx + 0xe], cx
mov ax, word [ebx + 0x12]
mov dword [esp + 0x2c], eax
sete cl
cmp eax, 3
mov dword [esp + 0x34], ecx
jne 0x42589a
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x70]
push ebp
push edx
push esi
push edi
push eax
call fcn.0043e860
add esp, 0x14
mov dword [esp + 0x34], 1
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x4259d7
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4259d7
cmp dword [esp + 0x2c], 4
je 0x4259d7
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x4258e1
cmp dword [esp + 0x60], 0xffffffa0
jl 0x4259d7
cmp dword [esp + 0x64], 0xfffffff0
jl 0x4259d7
mov ebp, dword [esp + 0x14]
jmp 0x425901
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
mov ebp, dword [esp + 0x14]
add edi, eax
add ecx, eax
mov eax, dword [esp + 0x64]
add esi, ebp
add eax, ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 1
jne 0x42591e
mov eax, 3
mov dword [esp + 0x80], 0
jmp 0x425929
mov ecx, dword [esp + 0x80]
test ecx, ecx
jne 0x425960
mov ecx, dword [esp + 0x34]
push eax
test ecx, ecx
je 0x42594d
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x64]
mov eax, dword [0x45154c]
dec ecx
dec edx
push ecx
push edx
push esi
push edi
push eax
call sub.MMFS2.dll_Ordinal_105
jmp 0x425960
mov ecx, dword [esp + 0x28]
mov edx, dword [0x45154c]
push esi
push edi
push ecx
push edx
call sub.MMFS2.dll_Ordinal_106
cmp dword [esp + 0x2c], 2
jne 0x4259b3
mov eax, dword [esp + 0x34]
mov dword [esp + 0x80], 0
test eax, eax
je 0x4259a1
mov ecx, dword [esp + 0x64]
lea eax, [esi + 6]
cmp eax, ecx
jl 0x425987
mov eax, ecx
dec eax
mov ecx, dword [0x45154c]
push 2
push eax
mov eax, dword [esp + 0x68]
dec eax
push eax
push esi
push edi
push ecx
call sub.MMFS2.dll_Ordinal_105
jmp 0x4259b3
mov edx, dword [esp + 0x24]
mov eax, dword [0x45154c]
push esi
push edi
push edx
push eax
call sub.MMFS2.dll_Ordinal_107
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4259d7
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x60]
sub edi, eax
sub ecx, eax
mov eax, dword [esp + 0x64]
sub esi, ebp
sub eax, ebp
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
cmp edi, dword [esp + 0x78]
jg 0x425ac8
cmp esi, dword [esp + 0x7c]
jg 0x425ac8
mov eax, dword [esp + 0x60]
test eax, eax
jl 0x425ac8
mov eax, dword [esp + 0x64]
test eax, eax
jl 0x425ac8
mov eax, dword [esp + 0x70]
test eax, eax
jle 0x425aa1
mov ecx, dword [esp + 0x50]
mov eax, 0x480008
test ecx, ecx
jne 0x425a21
mov eax, 0x480208
mov ecx, dword [esp + 0x2c]
cmp ecx, 1
jne 0x425a31
or eax, 0x10001
jmp 0x425a3b
cmp ecx, 2
jne 0x425a3b
or eax, 0x20001
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
test ecx, ecx
jne 0x425a8c
mov edx, dword [esp + 0x54]
push ebx
push eax
mov eax, dword [esp + 0x30]
push ecx
lea ecx, [edx + eax*4 + 0x10000000]
mov dx, word [ebx + 0x10]
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [0x45154c]
push edx
push eax
push esi
push edi
push ecx
call sub.MMFS2.dll_Ordinal_74
mov edx, dword [esp + 0x30]
mov dword [edx], eax
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x24]
push ecx
push edx
push eax
mov eax, dword [0x45154c]
push eax
call sub.MMFS2.dll_Ordinal_83
jmp 0x425af0
mov edx, dword [esp + 0x24]
mov eax, dword [0x45154c]
push edx
push esi
push edi
push ecx
push eax
call sub.MMFS2.dll_Ordinal_75
jmp 0x425af0
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x425af0
mov ecx, dword [ebx + 0x28]
mov edx, dword [ebx + 0x24]
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [0x45154c]
push edx
push 0
push esi
push edi
push eax
push ecx
call sub.MMFS2.dll_Ordinal_168
jmp 0x425af0
mov eax, dword [esp + 0x70]
test eax, eax
jle 0x425af0
mov edx, dword [esp + 0x30]
mov eax, dword [edx]
test eax, eax
je 0x425af0
push eax
mov eax, dword [0x45154c]
push eax
call sub.MMFS2.dll_Ordinal_79
mov ecx, dword [esp + 0x30]
mov dword [ecx], 0
mov eax, dword [esp + 0x74]
test eax, eax
je 0x425b04
mov ecx, dword [esp + 0x28]
dec ecx
sub ebx, 0x2c
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x28]
inc eax
add ebx, 0x2c
mov ecx, dword [edx + 0x14]
mov dword [esp + 0x28], eax
cmp eax, ecx
jl 0x425608
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x58
ret