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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
push edi
push 4
lea eax, [esp + 0x1c]
xor esi, esi
push eax
mov dword [esp + 0x1c], esi
call dword [0x10075f84]
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x18]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebx + 0x78]
push eax
call fcn.004c9070
test eax, eax
je 0x4bfd6c
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x58]
call eax
test eax, eax
je 0x4bfd6c
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], esi
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov esi, eax
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x10]
mov edi, eax
push edx
lea eax, [esp + 0x24]
push eax
add ebx, 0x13c
push ebx
mov dword [esp + 0x2c], ecx
call fcn.004c9e30
test eax, eax
mov ebx, dword [0x1005f1c8]
je 0x4bfb0c
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [esp + 0x20], eax
je 0x4bfae3
push eax
call ebx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4bfaed
push eax
call ebx
mov ecx, dword [ebp + 0x24]
mov edx, dword [ebp + 0x20]
push ecx
push edx
call dword [0x1005f1d0]
test eax, eax
je 0x4bfb16
mov dword [esp + 0x14], 0xc0000005
jmp 0x4bfd09
mov dword [esp + 0x20], 0
jmp 0x4bfae3
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x10]
push edx
call eax
cmp dword [esp + 0x10], 0
jne 0x4bfb3a
mov dword [esp + 0x14], 0xc0000010
jmp 0x4bfd09
push 8
lea ecx, [esp + 0x34]
push ecx
call dword [0x10075f84]
cmp esi, 0x100004
je 0x4bfb8f
cmp esi, 4
je 0x4bfb8f
test edi, 0x30
mov ebx, dword [ebp + 0x28]
je 0x4bfb67
test ebx, ebx
je 0x4bfce0
test ebx, ebx
je 0x4bfce0
cmp dword [ebx + 4], 0xffffffff
jne 0x4bfbb1
cmp dword [ebx], 0xffffffff
jne 0x4bfbb1
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x38]
push 2
push edx
mov edx, dword [esp + 0x3c]
jmp 0x4bfcd3
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x38]
push 2
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push eax
call edx
jmp 0x4bfce0
mov esi, dword [esp + 0x10]
xor eax, eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.004ba670
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x30]
mov eax, dword [ebx]
add esp, 4
cmp esi, edi
jl 0x4bfcc6
jg 0x4bfbe9
cmp eax, dword [esp + 0x28]
jbe 0x4bfcc6
mov ebx, eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push esi
push ebx
push eax
mov eax, dword [edx + 0x18]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
mov edx, dword [esp + 0x2c]
push 0
push edi
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
push 0x10000
call fcn.004b1530
add esp, 4
push 0x10000
push eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 0x10000
call dword [0x10075f84]
cmp edi, esi
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x28], ecx
jg 0x4bfcba
jl 0x4bfc54
cmp ecx, ebx
jae 0x4bfcba
jmp 0x4bfc54
mov ecx, dword [esp + 0x28]
mov eax, ebx
sub eax, ecx
mov edx, esi
sbb edx, edi
mov dword [esp + 0x4c], edx
jne 0x4bfc69
cmp eax, 0x10000
jbe 0x4bfc84
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x3c]
push 0x10000
push edx
push eax
mov eax, dword [ecx + 0x10]
jmp 0x4bfca1
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
mov eax, dword [eax + 0x10]
lea edx, [esp + 0x24]
push edx
mov edx, ebx
sub edx, ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x18]
push ecx
push edx
call eax
add dword [esp + 0x28], 0x10000
adc edi, 0
cmp edi, esi
jl 0x4bfc50
jg 0x4bfcba
cmp dword [esp + 0x28], ebx
jb 0x4bfc50
lea ecx, [esp + 0x38]
call fcn.00497cc0
mov ebx, dword [ebp + 0x28]
lea edx, [esp + 0x40]
push edx
mov edx, dword [ebx + 4]
push 0
push edx
mov edx, dword [ebx]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4bfd09
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x20]
test eax, eax
mov esi, dword [0x1005f0b4]
je 0x4bfd1a
push eax
call esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4bfd24
push eax
call esi
mov eax, dword [ebp + 0x1c]
test eax, eax
mov esi, dword [esp + 0x14]
je 0x4bfd38
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov dword [eax], esi
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x4bfd54
mov edx, dword [ebp + 0x18]
push 0
push eax
push edx
push ecx
call dword [0x1005f0b8]
push eax
call dword [0x10075f60]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push esi
push ecx
push edx
call fcn.004c5440
jmp 0x4bfda3
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x28]
mov eax, dword [0x10075e30]
mov eax, dword [eax + 0x13c]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push ecx
call eax
mov dword [esp + 0x14], eax
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4bfdb3
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x28