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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [esp + 0x10]
push eax
xor ebx, ebx
push ecx
mov eax, esi
mov dword [esp + 0x1c], ebx
mov word [esp + 0x18], bx
mov word [esp + 0x1a], bx
call fcn.0049ad00
mov edi, eax
cmp edi, ebx
jne 0x49b160
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0xc]
push edx
push 0x38
lea eax, [esp + 0x90]
push eax
push ebx
push ecx
call fcn.005242c0
mov edi, eax
cmp edi, ebx
jne 0x49b160
mov edi, dword [0x100cf22c]
push ebx
push ebx
push 0x130089
lea edx, [esp + 0x24]
push edx
call edi
push eax
mov eax, dword [ebp + 0xc]
push eax
call edi
push eax
call fcn.00521db0
cmp eax, 0xc0000022
mov dword [esp + 0x20], eax
jne 0x49b174
push ebx
push ebx
push ebx
lea ecx, [esp + 0x24]
push ecx
call edi
mov edx, dword [ebp + 0xc]
push eax
push edx
call edi
push eax
call fcn.00521db0
mov edi, eax
cmp edi, ebx
je 0x49b17c
lea eax, [esp + 0x10]
call fcn.00505660
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, ebx
jne 0x49b3ee
mov edx, dword [esp + 0x18]
push 5
push 0x18
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
call fcn.00521440
mov edi, eax
cmp edi, ebx
jne 0x49b160
cmp byte [esp + 0x85], bl
je 0x49b24a
mov edi, dword [ebp + 0x10]
push 1
push edi
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0049b5f0
test eax, eax
jne 0x49b22c
push 8
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x14], ebx
call dword [0x100ef7e8]
mov ecx, dword [esp + 0x8c]
push ebx
push ebx
push 0x20
push 1
push 7
push ebx
push ebx
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x50]
push eax
or ecx, 0x100002
push ecx
lea edx, [esp + 0x34]
push edx
mov dword [esp + 0x5c], 0x18
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], 0x40
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.00520860
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x6c]
push eax
push ecx
push edx
call fcn.00485930
mov eax, dword [esp + 0x18]
push eax
call fcn.00521500
lea eax, [esp + 0x10]
call fcn.00505660
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0x18]
push 0xe
push 8
lea ecx, [esp + 0x70]
push ecx
lea edx, [esp + 0x6c]
push edx
push eax
call fcn.00521440
mov edi, eax
cmp edi, ebx
jne 0x49b160
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x38], ecx
mov edi, 0x18
push esi
xor ecx, ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
call fcn.00493e40
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x34]
lea edx, [esp + 0x14]
push ecx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x44], 0x40
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
call fcn.005219d0
mov edi, eax
cmp edi, ebx
jne 0x49b160
mov edx, dword [ebp + 0xc]
push edx
push esi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x14], ebx
call fcn.004977e0
test eax, eax
je 0x49b345
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0x34]
call fcn.00532c00
mov eax, dword [0x100ef808]
push 8
push 1
push eax
call dword [0x100cf14c]
cmp byte [esp + 0x4c], bl
mov edi, eax
je 0x49b325
mov esi, dword [esp + 0x48]
call fcn.005154d0
mov esi, dword [ebp + 8]
cmp edi, ebx
je 0x49b33a
mov dword [edi + 4], esi
mov ecx, dword [esi + 0x70]
mov dword [edi], ecx
mov dword [esi + 0x70], 1
jmp 0x49b33c
xor edi, edi
lea esi, [esp + 0xc]
call fcn.004a4540
mov edx, dword [0x100e7a10]
mov esi, dword [0x100cf0b4]
push edx
call esi
mov edi, dword [0x100cf0b0]
add eax, 1
push eax
mov eax, dword [0x100e7a10]
push eax
call edi
push 8
lea ecx, [esp + 0x28]
push ecx
call dword [0x100ef7e8]
mov eax, dword [esp + 0x88]
mov edx, dword [ebp + 0x10]
push ebx
push ebx
push 0x60
push 2
push 7
push eax
mov eax, dword [esp + 0xa4]
push ebx
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x58], edx
lea edx, [esp + 0x50]
push edx
or eax, 0x100002
push eax
lea ecx, [esp + 0x54]
push ecx
mov dword [esp + 0x5c], 0x18
mov dword [esp + 0x60], ebx
mov dword [esp + 0x68], 0x40
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
call fcn.00520860
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x49b404
mov edx, dword [0x100e7a10]
push edx
call esi
sub eax, 1
push eax
mov eax, dword [0x100e7a10]
push eax
call edi
lea esi, [esp + 0xc]
call fcn.004a4560
lea eax, [esp + 0x10]
call fcn.00505660
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [0x100e7a10]
push ecx
call esi
mov edx, dword [0x100e7a10]
sub eax, 1
push eax
push edx
call edi
lea esi, [esp + 0xc]
call fcn.004a4560
push 0x100ef4b8
mov edx, 0x100ef4b4
lea eax, [esp + 0x34]
call fcn.00532c00
mov eax, dword [0x100ef808]
push 0x400000
push 1
push eax
call dword [0x100cf14c]
cmp byte [esp + 0x4c], bl
mov edi, eax
je 0x49b45a
mov esi, dword [esp + 0x48]
call fcn.005154d0
mov edx, dword [esp + 0x18]
mov esi, dword [0x100cf0c0]
push ebx
lea ecx, [esp + 0x10]
push ecx
push 0x400000
push edi
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], 0x400000
call esi
test eax, eax
je 0x49b4b5
mov eax, dword [esp + 0xc]
cmp eax, ebx
jbe 0x49b4b5
mov edx, dword [esp + 0x2c]
push ebx
lea ecx, [esp + 0x24]
push ecx
push eax
push edi
push edx
call dword [0x100cf23c]
mov ecx, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x10]
push eax
push 0x400000
push edi
push ecx
call esi
test eax, eax
jne 0x49b483
lea esi, [esp + 0x24]
call fcn.00472330
mov ecx, dword [esp + 0x2c]
push 0xe
push 8
lea edx, [esp + 0x70]
push edx
lea eax, [esp + 0x6c]
push eax
push ecx
call fcn.00521380
mov esi, eax
cmp esi, ebx
je 0x49b4f0
lea eax, [esp + 0x10]
call fcn.00505660
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x18]
push 0xd
push 1
lea edx, [esp + 0x27]
push edx
lea eax, [esp + 0x6c]
push eax
push ecx
mov byte [esp + 0x33], 1
call fcn.00521380
mov edx, dword [esp + 0x18]
push edx
call fcn.00521500
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x6c]
push eax
push ecx
push edx
call fcn.00485930
lea eax, [esp + 0xc]
push ebx
push eax
call fcn.0047a340
mov esi, dword [esp + 0x14]
add esp, 8
push 4
lea eax, [esp + 0x14]
mov ecx, esi
call fcn.0047a4b0
mov eax, dword [ebp + 0x10]
push 5
mov ecx, esi
call fcn.0047a4b0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov ecx, edi
mov dword [esp + 0x64], ebx
mov word [esp + 0x60], bx
mov word [esp + 0x62], bx
mov dword [esp + 0x6c], ebx
mov word [esp + 0x68], bx
mov word [esp + 0x6a], bx
call fcn.00486a50
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ecx, dword [edi + 0x78]
mov dword [esp + 0x28], eax
movzx eax, word [esp + 0x50]
push esi
shr eax, 1
mov dword [esp + 0x28], edx
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
push eax
lea eax, [esp + 0x2c]
push eax
call edx
lea eax, [esp + 0x58]
call fcn.00505660
lea eax, [esp + 0x50]
call fcn.00505660
lea esi, [esp + 0xc]
call fcn.004f91d0
lea eax, [esp + 0x10]
call fcn.00505660
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc