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

Disassembly:
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x30]
push ebp
push esi
mov esi, dword [esp + 0x34]
mov ebp, edx
mov dword [esp + 0x20], ebp
push edi
mov edi, ecx
test ebp, ebp
jne 0x48f4b8
mov eax, 0x2400
test word [edi + 8], ax
je 0x48f4a5
call fcn.0048ebe0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, 1
mov word [edi + 8], ax
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [edi + 0x20]
mov dword [esp + 0x14], eax
test eax, eax
je 0x48f4c8
mov eax, dword [eax + 0x78]
jmp 0x48f4cd
mov eax, 0x3b9aca00
cmp byte [esp + 0x40], 0
mov edx, 0x10
mov ecx, 2
cmove ecx, edx
cdq
movzx ecx, cx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
test ebx, ebx
jg 0x48f568
jl 0x48f4f9
test esi, esi
jae 0x48f568
cmp byte [esp + 0x40], 1
jne 0x48f516
mov esi, ebp
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x48f505
sub esi, ecx
mov ecx, dword [esp + 0x38]
xor ebx, ebx
jmp 0x48f55a
xorps xmm0, xmm0
movlpd qword [esp + 0x38], xmm0
test edx, edx
jl 0x48f552
mov edx, dword [esp + 0x18]
jg 0x48f52d
test edx, edx
jb 0x48f552
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov al, byte [esi + ebp + 1]
or al, byte [esi + ebp]
je 0x48f55a
add esi, 2
adc ebx, 0
cmp ebx, dword [esp + 0x1c]
jl 0x48f535
jg 0x48f55a
cmp esi, edx
jbe 0x48f535
jmp 0x48f55a
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
or ecx, 0x200
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x44]
cmp eax, 0xffffffff
jne 0x48f61d
test dword [esp + 0x38], 0x200
mov eax, esi
mov dword [esp + 0x20], eax
mov ecx, ebx
je 0x48f59c
xor eax, eax
cmp byte [esp + 0x40], 1
setne al
xor ecx, ecx
inc eax
add eax, esi
mov dword [esp + 0x20], eax
adc ecx, ebx
cmp ebx, edx
jl 0x48f5b1
jg 0x48f5a8
cmp esi, dword [esp + 0x18]
jbe 0x48f5b1
mov eax, dword [esp + 0x14]
jmp 0x48f79f
test ecx, ecx
jl 0x48f5bc
jg 0x48f5c1
cmp eax, 0x20
ja 0x48f5c1
mov eax, 0x20
cmp dword [edi + 0x18], eax
jge 0x48f5e8
push 0
mov edx, eax
mov ecx, edi
call fcn.0048e640
add esp, 4
test eax, eax
jne 0x48f770
lea eax, [edi + 8]
lea ebp, [edi + 0x10]
mov dword [esp + 0x14], eax
jmp 0x48f5fc
mov eax, dword [edi + 0x14]
lea ecx, [edi + 8]
and word [ecx], 0x2d
lea ebp, [edi + 0x10]
mov dword [ebp], eax
mov dword [esp + 0x14], ecx
push dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
push ecx
push dword [ebp]
call fcn.00548c50
mov cx, word [esp + 0x44]
lea edx, [edi + 8]
add esp, 0xc
jmp 0x48f6d3
lea edx, [edi + 8]
mov ecx, 0x2400
mov dword [esp + 0x14], edx
test word [edx], cx
jne 0x48f634
cmp dword [edi + 0x18], 0
je 0x48f642
mov ecx, edi
call fcn.0048ec20
mov eax, dword [esp + 0x44]
lea edx, [edi + 8]
mov ecx, dword [esp + 0x24]
lea ebp, [edi + 0x10]
mov dword [ebp], ecx
cmp eax, fcn.0046c040
jne 0x48f6b2
mov eax, dword [edi + 0x20]
mov dword [edi + 0x14], ecx
test eax, eax
je 0x48f69b
cmp ecx, dword [eax + 0x164]
jae 0x48f69b
cmp ecx, dword [eax + 0x15c]
jb 0x48f67f
mov cx, word [esp + 0x38]
lea edx, [edi + 8]
mov eax, 0x80
mov dword [edi + 0x18], eax
jmp 0x48f6d3
cmp ecx, dword [eax + 0x160]
jb 0x48f69b
movzx eax, word [eax + 0x136]
lea edx, [edi + 8]
mov cx, word [esp + 0x38]
mov dword [edi + 0x18], eax
jmp 0x48f6d3
push ecx
call dword [0x5b6c4c]
mov cx, word [esp + 0x3c]
lea edx, [edi + 8]
add esp, 4
mov dword [edi + 0x18], eax
jmp 0x48f6d3
cmp dword [esp + 0x44], 0
mov ecx, 0x800
mov dword [edi + 0x24], eax
mov eax, 0x400
cmove eax, ecx
mov dword [esp + 0x14], edx
mov cx, word [esp + 0x38]
or cx, ax
mov eax, esi
mov word [edx], cx
mov cl, byte [esp + 0x40]
and eax, 0x7fffffff
mov dword [edi + 0xc], eax
test cl, cl
je 0x48f77d
mov byte [edi + 0xa], cl
cmp cl, 1
jbe 0x48f786
cmp eax, 1
jbe 0x48f786
mov eax, dword [ebp]
mov cl, byte [eax]
mov al, byte [eax + 1]
cmp cl, 0xfe
jne 0x48f719
cmp al, 0xff
jne 0x48f786
mov byte [esp + 0x38], 3
jmp 0x48f727
cmp cl, 0xff
jne 0x48f786
cmp al, 0xfe
jne 0x48f786
mov byte [esp + 0x38], 2
mov ecx, edi
call fcn.0048e940
test eax, eax
jne 0x48f770
mov ecx, dword [ebp]
add dword [edi + 0xc], 0xfffffffe
push dword [edi + 0xc]
lea eax, [ecx + 2]
push eax
push ecx
call fcn.00548c50
mov ecx, dword [ebp]
add esp, 0xc
mov eax, dword [edi + 0xc]
mov byte [ecx + eax], 0
mov ecx, dword [ebp]
mov eax, dword [edi + 0xc]
mov byte [ecx + eax + 1], 0
mov ecx, 0x200
mov eax, dword [esp + 0x14]
or word [eax], cx
mov al, byte [esp + 0x38]
jmp 0x48f783
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov eax, dword [edi + 0x20]
mov al, byte [eax + 0x54]
mov byte [edi + 0xa], al
cmp ebx, dword [esp + 0x1c]
jl 0x48f49b
jg 0x48f79c
cmp esi, dword [esp + 0x18]
jbe 0x48f49b
mov eax, dword [edi + 0x20]
test eax, eax
je 0x48f7b7
mov eax, dword [eax + 0x10c]
test eax, eax
je 0x48f7b7
inc dword [eax + 0x24]
mov dword [eax + 0xc], 0x12
pop edi
pop esi
pop ebp
mov eax, 0x12
pop ebx
add esp, 0x24
ret