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

Disassembly:
mov ecx, dword [esp + 8]
cmp dword [ecx + 8], 1
je 0x49c2f3
mov eax, dword [ecx]
test eax, eax
je 0x49c2f3
jle 0x49c2ea
mov eax, dword [ecx + 0xc]
test byte [eax], 1
je 0x49c2ea
mov dword [esp + 8], ecx
jmp 0x4bb7a7
mov dword [esp + 8], ecx
jmp 0x4bb317
mov eax, 0x16
ret
sub esp, 0x80
push edi
mov edi, dword [esp + 0x8c]
cmp dword [edi + 8], 1
je 0x4bb78f
cmp dword [edi], 0
je 0x4bb78f
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x80]
push eax
lea ecx, [esp + 0x94]
push ecx
call fcn.004bb217
add esp, 0x24
test eax, eax
jne 0x4bb794
mov eax, dword [esp + 0x88]
push esi
lea edx, [esp + 0x78]
push edx
push edi
push eax
call fcn.004bb287
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bb74c
lea ecx, [esp + 0x68]
push ecx
push edi
call fcn.0049af07
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bb74c
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x4bb3da
mov edx, dword [esp + 0x84]
test byte [edx], 1
jne 0x4bb3da
mov eax, dword [esp + 0x68]
test eax, eax
jle 0x4bb3da
mov eax, dword [esp + 0x74]
test byte [eax], 1
je 0x4bb6b0
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x7c]
push edx
call fcn.0049af07
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bb74c
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x6c]
push ecx
call fcn.0049af07
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bb74c
lea edx, [esp + 0x28]
push 1
push edx
call fcn.004bbb17
lea eax, [esp + 0x20]
push 1
push eax
call fcn.004bbb17
add esp, 0x10
jmp 0x4bb437
mov eax, dword [esp + 0x48]
test eax, eax
jle 0x4bb507
mov ecx, dword [esp + 0x54]
test byte [ecx], 1
jne 0x4bb507
lea edx, [esp + 0x48]
push edx
mov eax, edx
push eax
call fcn.0049bee7
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bb74c
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x4bb47b
mov ecx, dword [esp + 0x34]
test byte [ecx], 1
jne 0x4bb48c
mov eax, dword [esp + 0x58]
test eax, eax
jle 0x4bb4ca
mov edx, dword [esp + 0x64]
test byte [edx], 1
je 0x4bb4ca
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov edx, eax
push edx
call fcn.0049b4a7
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bb74c
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov edx, eax
push edx
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bb74c
lea eax, [esp + 0x28]
push eax
mov ecx, eax
push ecx
call fcn.0049bee7
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bb74c
lea edx, [esp + 0x58]
push edx
mov eax, edx
push eax
call fcn.0049bee7
mov esi, eax
add esp, 8
test esi, esi
je 0x4bb437
jmp 0x4bb74c
mov eax, dword [esp + 0x38]
test eax, eax
jle 0x4bb5d3
mov ecx, dword [esp + 0x44]
test byte [ecx], 1
jne 0x4bb5d3
lea edx, [esp + 0x38]
push edx
mov eax, edx
push eax
call fcn.0049bee7
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bb74c
mov eax, dword [esp + 8]
test eax, eax
jle 0x4bb54b
mov ecx, dword [esp + 0x14]
test byte [ecx], 1
jne 0x4bb55c
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x4bb59a
mov edx, dword [esp + 0x24]
test byte [edx], 1
je 0x4bb59a
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov edx, eax
push edx
call fcn.0049b4a7
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bb74c
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov edx, eax
push edx
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bb74c
lea eax, [esp + 8]
push eax
mov ecx, eax
push ecx
call fcn.0049bee7
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bb74c
lea edx, [esp + 0x18]
push edx
mov eax, edx
push eax
call fcn.0049bee7
mov esi, eax
add esp, 8
test esi, esi
je 0x4bb507
jmp 0x4bb74c
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
call fcn.0049b017
add esp, 8
cmp eax, 0xffffffff
je 0x4bb634
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov edx, eax
push edx
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bb74c
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0xc]
push ecx
mov edx, eax
push edx
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bb74c
lea eax, [esp + 0x58]
lea ecx, [esp + 0x18]
mov edx, eax
jmp 0x4bb67c
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x4c]
push ecx
mov edx, eax
push edx
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bb74c
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov edx, eax
push edx
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bb74c
lea eax, [esp + 0x18]
lea ecx, [esp + 0x58]
mov edx, eax
push eax
push ecx
push edx
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bb74c
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x4bb43d
lea eax, [esp + 0x38]
push 1
push eax
call fcn.0049b057
add esp, 8
test eax, eax
je 0x4bb6ba
mov esi, 0x16
jmp 0x4bb74c
lea ecx, [esp + 8]
push 0
push ecx
call fcn.0049b057
add esp, 8
cmp eax, 0xffffffff
jne 0x4bb6f8
lea edx, [esp + 8]
push edx
mov eax, edx
push edi
push eax
call fcn.0049b4a7
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bb74c
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.0049b057
add esp, 8
cmp eax, 0xffffffff
je 0x4bb6ce
lea edx, [esp + 8]
push edi
push edx
call fcn.004b9037
add esp, 8
cmp eax, 0xffffffff
je 0x4bb735
lea eax, [esp + 8]
push eax
mov ecx, eax
push edi
push ecx
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bb74c
lea edx, [esp + 8]
push edi
push edx
call fcn.004b9037
add esp, 8
cmp eax, 0xffffffff
jne 0x4bb70b
mov eax, dword [esp + 0x94]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.004bb007
add esp, 8
xor esi, esi
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x64]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x98]
push eax
call fcn.004bb1e7
add esp, 0x24
mov eax, esi
pop esi
pop edi
add esp, 0x80
ret
mov eax, 0x16
pop edi
add esp, 0x80
ret
sub esp, 0x60
push ebp
mov ebp, dword [esp + 0x6c]
cmp dword [ebp], 0
jle 0x4bb7c7
mov eax, dword [ebp + 0xc]
test byte [eax], 1
jne 0x4bb7c7
mov eax, 0x16
pop ebp
add esp, 0x60
ret
push 0
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x68]
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.004bb217
add esp, 0x1c
test eax, eax
jne 0x4bba70
push esi
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.0049af07
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bba45
push edi
mov edi, dword [esp + 0x70]
lea edx, [esp + 0x5c]
push edx
push ebp
push edi
call fcn.004bb287
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bba44
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.0049af07
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bba44
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x60]
push eax
call fcn.0049af07
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bba44
lea ecx, [esp + 0xc]
push 1
push ecx
call fcn.004bbb17
add esp, 8
mov edi, edi
mov eax, dword [esp + 0x2c]
test eax, eax
jle 0x4bb8ed
mov edx, dword [esp + 0x38]
test byte [edx], 1
jne 0x4bb8ed
lea eax, [esp + 0x2c]
push eax
mov ecx, eax
push ecx
call fcn.0049bee7
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bba44
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4bb8d2
mov edx, dword [esp + 0x48]
test byte [edx], 1
je 0x4bb8d2
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x50]
push ecx
mov edx, eax
push edx
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bba44
lea eax, [esp + 0x3c]
push eax
mov ecx, eax
push ecx
call fcn.0049bee7
mov esi, eax
add esp, 8
test esi, esi
je 0x4bb877
jmp 0x4bba44
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x4bb963
mov edx, dword [esp + 0x28]
test byte [edx], 1
jne 0x4bb963
lea eax, [esp + 0x1c]
push eax
mov ecx, eax
push ecx
call fcn.0049bee7
mov esi, eax
add esp, 8
test esi, esi
jne 0x4bba44
mov eax, dword [esp + 0xc]
test eax, eax
jle 0x4bb948
mov edx, dword [esp + 0x18]
test byte [edx], 1
je 0x4bb948
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x50]
push ecx
mov edx, eax
push edx
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bba44
lea eax, [esp + 0xc]
push eax
mov ecx, eax
push ecx
call fcn.0049bee7
mov esi, eax
add esp, 8
test esi, esi
je 0x4bb8ed
jmp 0x4bba44
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0049b017
add esp, 8
cmp eax, 0xffffffff
je 0x4bb9a5
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x20]
push edx
mov eax, ecx
push eax
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bba44
lea ecx, [esp + 0x3c]
lea edx, [esp + 0xc]
mov eax, ecx
jmp 0x4bb9ce
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x30]
push edx
mov eax, ecx
push eax
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bba44
lea ecx, [esp + 0xc]
lea edx, [esp + 0x3c]
mov eax, ecx
push ecx
push edx
push eax
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bba44
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x4bb87d
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.0049b057
add esp, 8
test eax, eax
je 0x4bba05
mov esi, 0x16
jmp 0x4bba44
cmp dword [esp + 0x14], 1
mov edi, dword [edi + 8]
jne 0x4bba2d
lea edx, [esp + 0xc]
push edx
mov eax, edx
push ebp
push eax
call fcn.0049b4a7
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x4bba44
cmp dword [esp + 0x14], 1
je 0x4bba0f
mov esi, dword [esp + 0x78]
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.004bb007
add esp, 8
mov dword [esi + 8], edi
xor esi, esi
pop edi
push 0
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x60]
push ecx
call fcn.004bb1e7
add esp, 0x1c
mov eax, esi
pop esi
pop ebp
add esp, 0x60
ret