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

Disassembly:
push 0xffffffffffffffff
push 0x4f56b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
mov ebp, dword [esp + 0x98]
push esi
push edi
mov ecx, ebp
call fcn.00406750
mov eax, dword [ebp + 0xb4]
lea ecx, [ebp + 0xb4]
xor ebx, ebx
push ebx
call dword [eax + 0x2c]
push 1
mov ecx, ebp
mov byte [ebp + 0x109], bl
call fcn.00423150
mov edx, dword [ebp]
push ebx
mov ecx, ebp
call dword [edx + 0x58]
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp + 0x50]
push 0x2c
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
call fcn.004c14e8
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, ebx
mov dword [esp + 0x98], ebx
je 0x4b1632
push 0x12c
push 0xff
push ebx
mov ecx, eax
call fcn.00411fd0
jmp 0x4b1634
xor eax, eax
mov ecx, dword [eax + 0xc]
or ecx, 1
push 1
mov dword [eax + 0xc], ecx
push eax
mov ecx, ebp
mov dword [esp + 0xa0], 0xffffffff
call fcn.004066a0
call fcn.004c2c61
and eax, 0x80000001
jns 0x4b1663
dec eax
or eax, 0xfffffffe
inc eax
add eax, 2
cmp eax, ebx
jle 0x4b18b4
mov dword [esp + 0x10], eax
push 0xb0
call fcn.004c14e8
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x98], 1
je 0x4b16a0
push ebx
push ebx
push ebx
mov ecx, eax
call fcn.00403d00
mov esi, eax
jmp 0x4b16a2
xor esi, esi
push 0x10
mov edi, 0xf
push 0x5108bc
lea ecx, [esp + 0x44]
mov dword [esp + 0xa0], 0xffffffff
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00401eb0
push 0xd
push 0x5108d0
lea ecx, [esp + 0x28]
mov dword [esp + 0xa0], 2
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00401eb0
mov edi, dword [esi]
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xa0], 3
call fcn.00409d30
mov ecx, eax
call fcn.0040ac80
push eax
mov ecx, esi
call dword [edi + 0x54]
mov eax, dword [esp + 0x38]
mov edi, 0x10
cmp eax, edi
jb 0x4b1735
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004c2c15
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov dword [esp + 0x98], 0xffffffff
jb 0x4b1763
mov edx, dword [esp + 0x40]
push edx
call fcn.004c2c15
add esp, 4
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.004c2c61
cdq
idiv dword [esp + 0x14]
mov edi, edx
call fcn.004c2c61
cdq
idiv dword [esp + 0x18]
mov eax, dword [esi]
mov ecx, esi
push edx
call dword [eax + 0x24]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x2c]
push 4
mov ecx, esi
call fcn.00404cc0
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax + 0x58]
push 0x20
call fcn.004c14e8
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
cmp edi, ebx
mov dword [esp + 0x98], 4
je 0x4b17e2
call fcn.004c2c61
cdq
mov ecx, 0x64
idiv ecx
add edx, ecx
push edx
mov ecx, edi
call fcn.00412800
jmp 0x4b17e4
xor eax, eax
mov ecx, dword [eax + 0xc]
or ecx, 1
push 1
mov dword [eax + 0xc], ecx
or edi, 0xffffffff
push eax
mov ecx, esi
mov dword [esp + 0xa0], edi
call fcn.004066a0
push 0x2c
call fcn.004c14e8
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x98], 5
je 0x4b1832
push 0x1f4
push 0xff
push ebx
mov ecx, eax
call fcn.00411fd0
jmp 0x4b1834
xor eax, eax
mov ecx, dword [eax + 0xc]
or ecx, 1
push 1
mov dword [eax + 0xc], ecx
push eax
mov ecx, esi
mov dword [esp + 0xa0], edi
call fcn.004066a0
push 0x2c
call fcn.004c14e8
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x98], 6
je 0x4b187f
push 0x1f4
push ebx
push 0xff
mov ecx, eax
call fcn.00411fd0
jmp 0x4b1881
xor eax, eax
mov ecx, dword [eax + 0xc]
or ecx, 2
push 1
mov dword [eax + 0xc], ecx
push eax
mov ecx, esi
mov dword [esp + 0xa0], edi
call fcn.004066a0
push esi
push ebp
call fcn.004120d0
mov eax, dword [esp + 0x18]
add esp, 8
dec eax
mov dword [esp + 0x10], eax
jne 0x4b1672
push 0x1c
call fcn.004c14e8
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0x98], 7
je 0x4b18e0
push 0x4b07e0
push ebp
mov ecx, eax
call fcn.004146f0
jmp 0x4b18e2
xor eax, eax
push 1
push eax
mov ecx, ebp
mov dword [esp + 0xa0], 0xffffffff
call fcn.004066a0
cmp byte [esp + 0xa4], bl
je 0x4b19d1
push 5
mov esi, 0xf
push 0x5108e0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x94], esi
mov dword [esp + 0x90], ebx
mov byte [esp + 0x80], bl
call fcn.00401eb0
push 0xb
push str.DIALOG_OPEN
lea ecx, [esp + 0x60]
mov dword [esp + 0xa0], 8
mov dword [esp + 0x78], esi
mov dword [esp + 0x74], ebx
mov byte [esp + 0x64], bl
call fcn.00401eb0
push ebx
push 0x80
push 0xff
mov byte [esp + 0xa4], 9
call fcn.00483e50
mov ecx, eax
call fcn.00483b00
push eax
lea edx, [esp + 0x80]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.00409d30
mov ecx, eax
call fcn.0040ac80
mov ecx, eax
call fcn.00409790
mov eax, dword [esp + 0x70]
mov edi, 0x10
cmp eax, edi
jb 0x4b19af
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.004c2c15
add esp, 4
cmp dword [esp + 0x8c], edi
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
jb 0x4b19d1
mov edx, dword [esp + 0x78]
push edx
call fcn.004c2c15
add esp, 4
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret