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

Disassembly:
push 0xffffffffffffffff
push 0x73c4c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x30]
call fcn.004049b0
xor ebx, ebx
mov dword [esi + 0xa0], ebx
mov ecx, dword [0x914218]
or edi, 0xffffffff
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov eax, dword [ecx]
push ebx
mov dword [esp + 0x84], ebx
call dword [eax + 0x4c]
mov eax, dword [esp + 0x88]
cmp eax, ebx
mov ecx, dword [esp + 0x8c]
jne 0x4957e5
cmp ecx, ebx
jne 0x4957e5
push ebx
mov ecx, esi
call fcn.00492440
jmp 0x495800
cmp ecx, ebx
mov dword [esi + 0xa4], eax
jne 0x4957f4
mov ecx, 0x77f5d4
push ecx
lea ecx, [esi + 0xa8]
call fcn.00413310
cmp dword [esi + 0xa4], ebx
jne 0x49583b
mov eax, dword [esi + 0xa8]
cmp eax, ebx
je 0x495817
cmp word [eax], bx
jne 0x49583b
push ebx
push 0x3ec
push 0x42544e43
lea ecx, [esi + 8]
push ecx
push esi
call fcn.00410790
add esp, 0x14
mov dword [esp + 0x80], edi
jmp 0x495b03
mov dword [esi + 0xa0], 1
mov edx, dword [0x914218]
mov ecx, dword [edx + 8]
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [0x914218]
mov edx, dword [ecx]
push 1
call dword [edx + 0x4c]
call fcn.005ada80
push 0x308
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x88], eax
cmp eax, ebx
mov byte [esp + 0x80], 1
je 0x495890
push 1
mov ecx, eax
call fcn.005ad240
jmp 0x495892
xor eax, eax
mov dword [0x912e94], eax
mov edx, dword [eax]
mov ecx, eax
mov byte [esp + 0x80], bl
call dword [edx]
mov eax, dword [0x912e94]
mov dword [eax + 0x2c], 4
cmp dword [esi + 0xa4], ebx
mov ecx, dword [0x912e94]
je 0x4958fc
mov ecx, dword [ecx + 0x164]
mov edx, dword [ecx]
call dword [edx + 4]
xor edx, edx
mov ecx, 0x186a1
div ecx
mov ecx, dword [0x912e94]
xor eax, eax
push 0x90535c
mov dword [0x90535c], edx
cmp dword [esi + 0xa4], 0x1388
mov edx, dword [ecx]
sete al
push eax
call dword [edx + 0x54]
mov ebp, eax
jmp 0x495941
mov eax, dword [esi + 0xa8]
mov edx, dword [ecx]
push ebx
push 1
push eax
call dword [edx + 0x4c]
mov ebp, eax
cmp ebp, ebx
jne 0x49592b
call fcn.005ada80
push ebx
push ebx
mov ecx, esi
call fcn.00495770
mov dword [esp + 0x80], edi
jmp 0x495b03
movzx eax, word [ebp + 0x18]
add eax, eax
not eax
and eax, 2
or eax, 0x1388
mov dword [esi + 0xa4], eax
push 0x20944
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x88], eax
cmp eax, ebx
mov byte [esp + 0x80], 2
je 0x49596c
push 1
mov ecx, eax
call fcn.0048a8d0
jmp 0x49596e
xor eax, eax
mov dword [esi + 0xbc], eax
mov ecx, dword [0x914218]
mov dword [0x905368], eax
mov eax, dword [ecx + 0x374]
mov edx, dword [eax + 0x20]
add eax, 0x20
mov dword [esp + 0x10], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esi + 0xbc]
mov dword [esp + 0x18], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
mov edx, dword [ecx]
push ebx
lea eax, [esp + 0x14]
push eax
push esi
mov byte [esp + 0x8c], bl
call dword [edx + 0xc]
mov eax, dword [esi + 0xbc]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x78]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0xbc]
mov edx, dword [ecx]
push eax
call dword [edx + 0x12c]
push 0x268
call fcn.0040fa60
add esp, 4
mov dword [esp + 0x88], eax
cmp eax, ebx
mov byte [esp + 0x80], 3
je 0x495a08
push 1
mov ecx, eax
call fcn.004bfda0
jmp 0x495a0a
xor eax, eax
mov ecx, dword [esi + 0xbc]
mov dword [ecx + 0x254], eax
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0x30]
lea edx, [eax + 0xc]
lea edi, [ecx - 2]
mov dword [esp + 0x2c], edx
mov edx, dword [esi + 0xbc]
add eax, 0xffffff67
add ecx, 0xfffffefd
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edi
mov ecx, dword [edx + 0x254]
mov eax, dword [ecx]
push 0x10
lea edx, [esp + 0x24]
push edx
push esi
mov byte [esp + 0x8c], bl
call dword [eax + 0xc]
mov eax, dword [0x905368]
mov byte [eax + 0x20891], 1
mov edx, dword [0x905368]
xor ecx, ecx
cmp dword [esi + 0xa4], 0x1388
setne cl
sub esp, 8
mov eax, esp
mov dword [esp + 0x90], esp
push ebp
add ecx, 5
mov dword [edx + 0x208b4], ecx
mov dword [esi + 0xa0], ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov ecx, dword [esi + 0xbc]
mov eax, dword [ecx]
call dword [eax + 0x22c]
mov ecx, dword [0x914218]
mov ecx, dword [ecx + 8]
mov eax, dword [esi + 0xbc]
mov edx, dword [ecx]
push eax
call dword [edx + 0x12c]
mov ecx, dword [0x914218]
mov edx, dword [ecx]
push ebx
call dword [edx + 0x4c]
mov eax, dword [0x912e94]
mov dword [eax + 0x170], 1
mov ecx, dword [0x912e94]
mov edx, dword [ecx]
call dword [edx + 0x1c]
mov ecx, esi
call fcn.00492190
mov dword [esp + 0x80], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.004049f0
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x74
ret 8