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

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
mov edi, dword [esp + 0x5c]
test edi, edi
mov dword [esp + 0x10], 0
jne 0x49f9bd
push 0
push 0x10000
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.0049fc10
add esp, 0x10
cmp eax, 0xffffff80
jne 0x49f9a2
cmp edx, 0xffffffff
jne 0x49f9a2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
test edx, edx
jg 0x49f9b9
jl 0x49f9ac
test eax, eax
jae 0x49f9b9
pop edi
pop esi
pop ebp
mov eax, 0xffffff7c
pop ebx
add esp, 0x34
ret
lea edi, [esp + 0x14]
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0048e890
mov edx, dword [esp + 0x54]
push edx
call fcn.0048e470
push edi
mov dword [ebx + 0x58], 2
call fcn.0048d800
add esp, 0xc
test eax, eax
je 0x49fb35
mov ebp, dword [esp + 0x54]
test ebp, ebp
je 0x49fa18
mov esi, dword [esp + 0x58]
mov eax, dword [esi]
mov ecx, dword [ebp]
push eax
push ecx
push edi
call fcn.0049fdb0
add esp, 0xc
test eax, eax
jne 0x49fad7
push esi
push ebp
push edi
call fcn.0049fd50
add esp, 0xc
cmp dword [ebx + 0x58], 3
jge 0x49fa7a
push edi
lea esi, [ebx + 0x78]
call fcn.0048d900
push eax
push esi
call fcn.0048e2b0
push edi
push esi
call fcn.0048def0
lea edx, [esp + 0x38]
push edx
push esi
call fcn.0048e2e0
add esp, 0x1c
test eax, eax
jle 0x49fa7a
lea eax, [esp + 0x24]
push eax
call fcn.0048ea30
add esp, 4
test eax, eax
je 0x49fa7a
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
mov dword [ebx + 0x58], 3
call fcn.0048eae0
add esp, 0xc
test eax, eax
jne 0x49faf4
push 0
push 0x10000
push edi
push ebx
call fcn.0049fc10
add esp, 0x10
cmp eax, 0xffffff80
jne 0x49fa99
cmp edx, 0xffffffff
je 0x49fb21
test edx, edx
jl 0x49fb3b
jg 0x49faab
test eax, eax
jb 0x49fb3b
cmp dword [ebx + 0x58], 3
jne 0x49fac4
push edi
call fcn.0048d900
mov ecx, dword [ebx + 0x1c8]
add esp, 4
cmp ecx, eax
je 0x49fb28
push edi
call fcn.0048d800
add esp, 4
test eax, eax
jne 0x49f9ed
jmp 0x49fb35
mov eax, dword [ebp]
test eax, eax
je 0x49fae7
push eax
call fcn.0044d8a5
add esp, 4
mov dword [ebp], 0
mov dword [esi], 0
mov esi, 0xffffff7b
mov eax, dword [esp + 0x4c]
push eax
call fcn.0048e8c0
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0048e800
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
mov dword [ebx + 0x58], 2
pop ebx
add esp, 0x34
ret
mov esi, 0xffffff80
jmp 0x49faf9
lea ecx, [ebx + 0x78]
push edi
push ecx
call fcn.0048def0
add esp, 8
cmp dword [ebx + 0x58], 3
je 0x49fb42
mov esi, 0xffffff7c
jmp 0x49faf9
xor ebp, ebp
cmp ebp, 2
jge 0x49fbff
lea edx, [esp + 0x24]
push edx
lea eax, [ebx + 0x78]
push eax
call fcn.0048e2e0
add esp, 8
test eax, eax
je 0x49fb90
cmp eax, 0xffffffff
je 0x49faf4
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call fcn.0048eae0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49faf9
inc ebp
cmp ebp, 2
jge 0x49fbff
jmp 0x49fb4d
cmp ebp, 2
jge 0x49fbff
push 0
push 0x10000
push edi
push ebx
call fcn.0049fc10
add esp, 0x10
test edx, edx
jl 0x49faf4
jg 0x49fbb8
test eax, eax
jb 0x49faf4
push edi
call fcn.0048d900
mov ecx, dword [ebx + 0x1c8]
add esp, 4
cmp ecx, eax
push edi
je 0x49fbee
call fcn.0048d800
add esp, 4
test eax, eax
je 0x49fb95
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x49faf4
mov dword [esp + 0x10], 1
jmp 0x49fb95
lea eax, [ebx + 0x78]
push eax
call fcn.0048def0
add esp, 8
jmp 0x49fb44
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret