Function at 0x49cf70
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 0x49cfcd
push 0
push 0x10000
lea eax, [esp + 0x1c]
push eax
push ebx
call fcn.0049d220
add esp, 0x10
cmp eax, 0xffffff80
jne 0x49cfb2
cmp edx, 0xffffffff
jne 0x49cfb2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
test edx, edx
jg 0x49cfc9
jl 0x49cfbc
test eax, eax
jae 0x49cfc9
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.0048ffb0
mov edx, dword [esp + 0x54]
push edx
call fcn.0048ff00
push edi
mov dword [ebx + 0x58], 2
call fcn.0048f290
add esp, 0xc
test eax, eax
je 0x49d145
mov ebp, dword [esp + 0x54]
test ebp, ebp
je 0x49d028
mov esi, dword [esp + 0x58]
mov eax, dword [esi]
mov ecx, dword [ebp]
push eax
push ecx
push edi
call fcn.0049d3c0
add esp, 0xc
test eax, eax
jne 0x49d0e7
push esi
push ebp
push edi
call fcn.0049d360
add esp, 0xc
cmp dword [ebx + 0x58], 3
jge 0x49d08a
push edi
lea esi, [ebx + 0x78]
call fcn.0048f390
push eax
push esi
call fcn.0048fd40
push edi
push esi
call fcn.0048f980
lea edx, [esp + 0x38]
push edx
push esi
call fcn.0048fd70
add esp, 0x1c
test eax, eax
jle 0x49d08a
lea eax, [esp + 0x24]
push eax
call fcn.00490150
add esp, 4
test eax, eax
je 0x49d08a
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.00490200
add esp, 0xc
test eax, eax
jne 0x49d104
push 0
push 0x10000
push edi
push ebx
call fcn.0049d220
add esp, 0x10
cmp eax, 0xffffff80
jne 0x49d0a9
cmp edx, 0xffffffff
je 0x49d131
test edx, edx
jl 0x49d14b
jg 0x49d0bb
test eax, eax
jb 0x49d14b
cmp dword [ebx + 0x58], 3
jne 0x49d0d4
push edi
call fcn.0048f390
mov ecx, dword [ebx + 0x1c8]
add esp, 4
cmp ecx, eax
je 0x49d138
push edi
call fcn.0048f290
add esp, 4
test eax, eax
jne 0x49cffd
jmp 0x49d145
mov eax, dword [ebp]
test eax, eax
je 0x49d0f7
push eax
call fcn.0044e915
add esp, 4
mov dword [ebp], 0
mov dword [esi], 0
mov esi, 0xffffff7b
mov eax, dword [esp + 0x4c]
push eax
call fcn.0048ffe0
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0048ff20
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 0x49d109
lea ecx, [ebx + 0x78]
push edi
push ecx
call fcn.0048f980
add esp, 8
cmp dword [ebx + 0x58], 3
je 0x49d152
mov esi, 0xffffff7c
jmp 0x49d109
xor ebp, ebp
cmp ebp, 2
jge 0x49d20f
lea edx, [esp + 0x24]
push edx
lea eax, [ebx + 0x78]
push eax
call fcn.0048fd70
add esp, 8
test eax, eax
je 0x49d1a0
cmp eax, 0xffffffff
je 0x49d104
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x24]
push eax
push ecx
push edx
call fcn.00490200
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49d109
inc ebp
cmp ebp, 2
jge 0x49d20f
jmp 0x49d15d
cmp ebp, 2
jge 0x49d20f
push 0
push 0x10000
push edi
push ebx
call fcn.0049d220
add esp, 0x10
test edx, edx
jl 0x49d104
jg 0x49d1c8
test eax, eax
jb 0x49d104
push edi
call fcn.0048f390
mov ecx, dword [ebx + 0x1c8]
add esp, 4
cmp ecx, eax
push edi
je 0x49d1fe
call fcn.0048f290
add esp, 4
test eax, eax
je 0x49d1a5
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x49d104
mov dword [esp + 0x10], 1
jmp 0x49d1a5
lea eax, [ebx + 0x78]
push eax
call fcn.0048f980
add esp, 8
jmp 0x49d154
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret