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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
je 0x48dfad
test ebx, ebx
je 0x48dfad
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x48dfad
movzx eax, word [esi + 0x422]
test al, 2
je 0x48dca7
sub esp, 8
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.0049dcc0
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x30
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.0041d6f0
movzx eax, byte [esi + 0x2f1]
add esp, 0xc
mov ecx, dword [ebp + 0x10]
add ecx, 5
mov dword [esp + 0x18], eax
add eax, ecx
mov dword [esp + 0x24], 5
mov cl, byte [esi + 0x2ed]
mov dword [esp + 0x28], 5
mov byte [esi + 0x433], 1
mov dword [esp + 0x1c], eax
cmp cl, 1
jne 0x48dd70
movzx edx, word [esi + 0x2e8]
mov dword [esp + 0x10], edx
test edx, edx
jne 0x48dd11
mov edi, 0xffffff40
mov byte [esi + 0x433], dl
jmp 0x48df73
movzx ecx, word [esi + 0x422]
test cl, 1
je 0x48dd3f
add eax, edx
mov ecx, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], eax
cmp edx, 0x10
jbe 0x48dd43
mov edi, 0xffffff7c
mov byte [esi + 0x433], 0
jmp 0x48df73
mov ecx, dword [esp + 0x30]
inc eax
xor edx, edx
mov dword [esp + 0x14], eax
add eax, 0xfffffffb
div dword [esp + 0x10]
mov dword [esp + 0x20], edx
test edx, edx
je 0x48dd68
movzx eax, word [esi + 0x2e8]
sub eax, edx
mov dword [esp + 0x20], eax
mov edx, eax
mov eax, dword [esp + 0x14]
add eax, edx
jmp 0x48dd9d
cmp cl, 2
mov edx, eax
mov ecx, dword [esp + 0x30]
jne 0x48dda3
cmp byte [esi + 0x2ec], 9
mov eax, 8
cmovne ecx, eax
movzx eax, word [esi + 0x2ea]
sub eax, dword [esp + 0x18]
add eax, edx
mov dword [esp + 0x30], ecx
add eax, ecx
mov edx, eax
mov dword [esp + 0x1c], eax
cmp edx, dword [ebp + 8]
jbe 0x48ddb9
mov edi, 0xffffff7c
mov byte [esi + 0x433], 0
jmp 0x48df73
test ecx, ecx
je 0x48de07
cmp ecx, 0x10
jbe 0x48dde3
call fcn.00472840
mov dword [esp + 0x34], eax
test eax, eax
jne 0x48dddd
lea edi, [eax - 0x7d]
mov byte [esi + 0x433], al
jmp 0x48df77
mov ecx, dword [esp + 0x30]
jmp 0x48ddeb
lea eax, [esp + 0x38]
mov dword [esp + 0x34], eax
push ecx
mov ecx, dword [esi + 0x78]
mov edx, eax
call fcn.004cfb40
mov edi, eax
add esp, 4
test edi, edi
jne 0x48df64
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x28]
push ecx
push esi
push dword [ebp + 0x14]
movzx edx, ax
mov ecx, ebx
mov word [esp + 0x38], ax
call fcn.00489c70
mov ecx, dword [esp + 0x3c]
add esp, 0xc
test ecx, ecx
je 0x48de56
mov eax, 0x10
cmp ecx, eax
cmovb eax, ecx
push eax
mov eax, dword [esp + 0x28]
push dword [esp + 0x38]
add eax, ebx
push eax
call fcn.0041d170
mov eax, dword [esp + 0x30]
add esp, 0xc
add eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
jmp 0x48de5a
mov eax, dword [esp + 0x24]
push dword [ebp + 0x10]
add eax, ebx
push dword [ebp + 0xc]
push eax
call fcn.0041d170
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov edx, dword [ebp + 0x10]
add ecx, edx
cmp dword [ebp + 0x14], 0x16
mov dword [esp + 0x24], ecx
mov byte [esi + 0x433], 2
jne 0x48deb0
cmp dword [ebp + 0x18], 0
je 0x48deb0
mov eax, dword [esp + 0x28]
mov ecx, esi
push dword [esp + 0x30]
add eax, edx
mov edx, ebx
push eax
call fcn.00489d60
mov edi, eax
add esp, 8
test edi, edi
jne 0x48df64
mov ecx, dword [esp + 0x24]
cmp byte [esi + 0x2ed], 1
jne 0x48ded3
mov edx, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x20]
add edx, ebx
lea eax, [ecx + 1]
push eax
push ecx
push edx
call fcn.0041d6f0
add esp, 0xc
cmp byte [esi + 0x2ed], 2
mov byte [esi + 0x433], 3
je 0x48df11
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
add eax, ecx
push 0
push 0
push dword [ebp + 0x14]
add eax, ebx
push 0xffffffffffffffff
push dword [ebp + 0x10]
push eax
mov eax, dword [esp + 0x3c]
add eax, ebx
push eax
mov eax, dword [esi + 0x1bc]
push esi
call eax
add esp, 0x20
mov edi, eax
test edi, edi
jne 0x48df64
mov edx, dword [esp + 0x28]
push ecx
push dword [esp + 0x30]
add edx, ebx
mov byte [esi + 0x433], 4
push edx
mov ecx, esi
call fcn.00485530
mov edi, eax
add esp, 0xc
test edi, edi
je 0x48df5b
mov eax, dword [esp + 0x28]
movzx ecx, word [esp + 0x2c]
add eax, ebx
test ecx, ecx
je 0x48df52
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x48df47
mov byte [esi + 0x433], 0
jmp 0x48df73
mov byte [esi + 0x433], 0
jmp 0x48df6f
mov byte [esi + 0x433], 0
test edi, edi
jne 0x48df73
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x48dfa4
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x48dfa4
mov ecx, dword [0x55587c]
push eax
test ecx, ecx
je 0x48df9c
call ecx
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0042a4fb
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0xffffff53
pop ebx
mov esp, ebp
pop ebp
ret