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

Disassembly:
sub esp, 0x5c
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
push ebx
xor ebx, ebx
mov eax, dword [eax]
mov ecx, dword [ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [0x107c9d6c]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
test eax, eax
je 0x1048b5bf
call eax
test eax, eax
je 0x1048b5bb
mov eax, dword [esp + 0x70]
mov dword [eax], 0x55
xor eax, eax
jmp 0x1048b8ae
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x94]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x5c], eax
push 0xfffffffffffffffe
pop eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x20]
sub eax, dword [esi + 0x10]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x50], eax
mov dword [esp + 0x60], ecx
lea eax, [ebx + 6]
mov dword [esp + 8], eax
cmp byte [ecx], 0x85
jne 0x1048b631
movzx edx, byte [ecx + 3]
movzx eax, byte [ecx + 4]
shl edx, 8
or edx, eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x54], eax
xor eax, eax
mov word [esp + 0x5a], ax
lea eax, [esp + 0x54]
mov dword [esp + 0x44], edx
mov word [esp + 0x58], dx
mov dword [esi + 0x24], eax
xor eax, eax
mov dword [esp + 0x18], ecx
mov word [ecx + 1], ax
add ebx, 3
mov edx, dword [esi + 0x40]
add ebx, ecx
push ebp
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
mov eax, edx
mov dword [esp + 0x38], edx
push edi
mov edi, dword [esp + 0xa8]
xor edx, edx
test edi, edi
mov dword [esp + 0x54], eax
cmove ecx, edx
mov dword [esp + 0x50], ecx
cmp dword [esp + 0x84], 0
mov dword [esp + 0x18], ebx
je 0x1048b67a
mov dword [esi + 0x40], eax
cmp dword [esp + 0x80], 0
je 0x1048b69f
lea eax, [ebx + 1]
mov byte [ebx], 0x7c
mov word [eax], 0
mov dword [esp + 0x48], eax
add eax, 2
add dword [esp + 0x10], 3
mov dword [esp + 0x18], eax
push ecx
push esi
push dword [esp + 0x94]
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x9c]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x9c]
push eax
call fcn.1048677e
add esp, 0x30
test eax, eax
je 0x1048b89f
mov eax, dword [esi + 0x40]
cmp eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x70]
cmovbe eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x3c], eax
test edi, edi
jne 0x1048b814
cmp byte [ebp], 0x77
je 0x1048b735
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
jmp 0x1048b7c5
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
test ecx, ecx
js 0x1048b77b
cmp ecx, edi
jne 0x1048b74f
cmp dword [esp + 0x38], edx
je 0x1048b777
mov eax, dword [esp + 0x14]
test eax, eax
cmovns ecx, eax
or dword [esp + 0x24], 0xffffffff
cmp dword [esp + 0x14], 0
mov eax, dword [esp + 0x38]
cmovge eax, dword [esp + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
test ecx, ecx
jns 0x1048b793
test edi, edi
js 0x1048b793
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jns 0x1048b797
mov ecx, edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ecx
jmp 0x1048b79b
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
mov eax, ecx
xor eax, edi
test eax, 0xfffffffd
jne 0x1048b7bc
cmp dword [esp + 0x1c], edx
jne 0x1048b7bc
or edi, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], edi
jmp 0x1048b7c1
or dword [esp + 0x14], 0xffffffff
mov ecx, dword [esp + 0x70]
cmp dword [esp + 0x80], 0
je 0x1048b814
xor eax, eax
xor edi, edi
push eax
push esi
push eax
mov byte [ebx], al
inc edi
mov eax, ecx
shr eax, 0xb
and eax, edi
push eax
push ebp
call fcn.1048c34a
mov ecx, eax
add esp, 0x14
cmp ecx, 0xfffffffd
jne 0x1048b7f6
mov dword [esi + 0x74], edi
jmp 0x1048b814
test ecx, ecx
js 0x1048b884
cmp ecx, dword [esi + 0x48]
jle 0x1048b806
mov dword [esi + 0x48], ecx
mov edx, dword [esp + 0x48]
mov eax, ecx
sar eax, 8
mov byte [edx], al
mov byte [edx + 1], cl
mov edi, dword [esp + 0x28]
cmp byte [edi], 0x7c
jne 0x1048b8b3
cmp dword [esp + 0xa8], 0
je 0x1048b844
mov eax, dword [esp + 0x74]
mov ebx, dword [esp + 0x88]
add ebx, 3
mov eax, dword [eax]
add ebx, eax
add dword [esp + 0x10], 3
jmp 0x1048b86b
mov ecx, dword [esp + 0x20]
mov eax, ebx
sub eax, ecx
mov byte [ebx], 0x77
sar eax, 8
mov byte [ebx + 1], al
mov al, bl
sub al, cl
mov dword [esp + 0x20], ebx
mov ebp, dword [esp + 0x20]
mov byte [ebx + 2], al
mov dword [esp + 0x68], ebx
add ebx, 3
mov ecx, dword [esp + 0x50]
inc edi
mov eax, dword [esp + 0x54]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0xa8]
jmp 0x1048b669
push 0x19
pop eax
push 0x46
cmp ecx, 0xfffffffc
pop edx
cmove eax, edx
cmp ecx, 0xfffffffe
mov ecx, dword [esp + 0x7c]
push 0x24
pop edx
cmove eax, edx
mov dword [ecx], eax
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x28]
mov dword [ecx], eax
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x5c
ret
mov ebp, dword [esp + 0xa8]
test ebp, ebp
jne 0x1048b8ea
mov edx, ebx
mov ebx, dword [esp + 0x20]
sub edx, ebx
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
shl ecx, 8
or ecx, eax
mov byte [ebx + 2], dl
mov eax, edx
mov edx, ecx
sar eax, 8
mov byte [ebx + 1], al
sub ebx, edx
test ecx, ecx
jne 0x1048b8c6
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x34]
mov eax, ebx
sub eax, ecx
mov byte [ebx], 0x78
sar eax, 8
mov byte [ebx + 1], al
mov al, bl
sub al, cl
mov byte [ebx + 2], al
add ebx, 3
cmp dword [esp + 0x4c], 0
jbe 0x1048b989
mov eax, dword [esi + 0x24]
xor edx, edx
cmp word [eax + 6], dx
je 0x1048b97e
push dword [esp + 0x58]
mov eax, dword [esp + 0x74]
shr eax, 0xb
push esi
and eax, 1
mov byte [ebx], dl
push eax
push 3
push ecx
call fcn.10484b08
mov ecx, dword [esp + 0x48]
mov eax, ebx
sub eax, ecx
push eax
push ecx
lea eax, [ecx + 3]
push eax
call fcn.10022f07
mov edx, dword [esp + 0x54]
add ebx, 3
mov ecx, ebx
mov al, bl
sub ecx, edx
sub al, dl
sar ecx, 8
add esp, 0x20
mov byte [edx], 0x81
mov byte [edx + 1], cl
mov byte [edx + 2], al
mov byte [ebx], 0x78
mov byte [ebx + 1], cl
mov byte [ebx + 2], al
add ebx, 3
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x24]
add ecx, 6
mov dword [esp + 0x10], ecx
jmp 0x1048b982
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi + 0x24], eax
jmp 0x1048b98d
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x3c]
mov dword [esi + 0x40], edx
mov edx, dword [esp + 0x38]
mov dword [eax], ebx
mov eax, dword [esp + 0x78]
mov dword [eax], edi
mov eax, dword [esp + 0x90]
mov dword [eax], edx
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x24]
mov dword [eax], edx
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
mov eax, dword [esp + 0x9c]
mov edx, dword [esp + 0x14]
mov dword [eax], edx
test ebp, ebp
je 0x1048b9fa
mov edx, dword [ebp]
mov eax, 0x7fffffeb
sub eax, edx
cmp eax, ecx
jge 0x1048b9f5
mov eax, dword [esp + 0x7c]
mov dword [eax], 0x14
jmp 0x1048b8a9
add ecx, edx
mov dword [ebp], ecx
xor eax, eax
inc eax
jmp 0x1048b8ab