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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x244
mov eax, dword [0x581500]
xor eax, esp
mov dword [esp + 0x240], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x110], 0
push edi
mov dword [esp + 0x1c], eax
jne 0x49b5d7
cmp byte [esi + 0x80], 0
lea edi, [esi + 0x82]
je 0x49b4ae
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov edi, eax
cmp byte [esi + 0x81], 0
mov eax, dword [esi + 0x104]
je 0x49b4c7
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x24]
call eax
xor ecx, ecx
cmp eax, ecx
jle 0x49b4cf
neg eax
movzx edx, byte [esi + 0x108]
neg edx
sbb edx, edx
and edx, 0x12c
add edx, 0x190
cmp byte [esi + 0x109], 0
mov dword [esp + 0x20], eax
setne al
cmp byte [esi + 0x10a], 0
push 0x3e
push ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], edx
mov byte [esp + 0x3c], al
mov ax, word [0x55922c]
lea ecx, [esp + 0x46]
setne dl
push ecx
mov byte [esp + 0x41], dl
mov byte [esp + 0x42], 0
mov byte [esp + 0x43], 1
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 0
mov byte [esp + 0x46], 6
mov byte [esp + 0x47], 0
mov word [esp + 0x48], ax
call fcn.004ff6c0
add esp, 0xc
push 0x1c8
lea edx, [esp + 0x80]
push 0
push edx
call fcn.004ff6c0
add esp, 0xc
push edi
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.004fa6de
mov ecx, dword [esi + 0x24]
add esp, 0xc
test ecx, ecx
je 0x49b58a
mov edx, dword [ecx]
mov eax, dword [edx + 0x28]
call eax
mov byte [esp + 0x10], al
jmp 0x49b58f
mov byte [esp + 0x10], 1
push 0x10
call fcn.004faba2
mov edi, eax
xor ebx, ebx
add esp, 4
cmp edi, ebx
jne 0x49b5a9
mov dword [esi + 0x110], ebx
jmp 0x49b5d7
mov ecx, dword [esp + 0x10]
push ecx
mov edx, edi
lea ecx, [esp + 0x24]
call fcn.0044dc90
add esp, 4
test eax, eax
jne 0x49b5d1
push edi
call fcn.004faac5
add esp, 4
mov dword [esi + 0x110], ebx
jmp 0x49b5d7
mov dword [esi + 0x110], edi
cmp dword [esi + 0x114], 0
lea ebx, [esi + 0x114]
jne 0x49b610
cmp byte [esi + 0x6c], 0
mov edi, dword [esi + 0x70]
je 0x49b5fe
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
call eax
mov edi, eax
mov dword [esi + 0x70], edi
test ebx, ebx
je 0x49b610
push 4
call fcn.004faba2
mov dword [eax], edi
add esp, 4
mov dword [ebx], eax
cmp byte [esi + 0x10c], 0
je 0x49b641
cmp dword [0x58f3dc], 0
jne 0x49b641
xor ecx, ecx
cmp ecx, 0x58f3dc
je 0x49b641
push 4
call fcn.004faba2
mov dword [eax], 0xff000000
add esp, 4
mov dword [0x58f3dc], eax
cmp dword [esi + 0x118], 0
lea ebx, [esi + 0x118]
jne 0x49b67a
cmp byte [esi + 0x6c], 0
mov edi, dword [esi + 0x78]
je 0x49b668
mov ecx, dword [esi + 0x24]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov edi, eax
mov dword [esi + 0x78], edi
test ebx, ebx
je 0x49b67a
push 4
call fcn.004faba2
mov dword [eax], edi
add esp, 4
mov dword [ebx], eax
mov eax, dword [esi + 0x68]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
cmp eax, ecx
je 0x49b6ad
push ecx
mov ecx, dword [esp + 0x20]
push 0x920
push eax
mov eax, dword [esi + 0x110]
push ecx
lea ebx, [esp + 0x24]
or ecx, 0xffffffff
call fcn.0044e110
mov ecx, dword [esp + 0x18]
cmp byte [esi + 0x50], 0
jne 0x49b6bd
mov edx, dword [esi + 0x40]
add edx, dword [esp + 0x14]
mov dword [esi + 0x38], edx
cmp byte [esi + 0x51], 0
jne 0x49b6d0
mov eax, dword [esi + 0x44]
cmp eax, ecx
mov dword [esi + 0x3c], eax
jge 0x49b6d0
mov dword [esi + 0x3c], ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x4c], ecx
mov ecx, dword [esp + 0x24c]
pop edi
mov dword [esi + 0x48], eax
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.004fa259
mov esp, ebp
pop ebp
ret 4