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

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x70]
mov eax, dword [ebx]
push ebp
xor ebp, ebp
cmp eax, ebp
jne 0x49b9e3
pop ebp
mov eax, 0x16
pop ebx
add esp, 0x64
ret
push esi
push edi
mov edi, dword [esp + 0x78]
push ebx
push edi
call fcn.004b9037
add esp, 8
cmp eax, 0xffffffff
jne 0x49ba35
mov eax, dword [esp + 0x84]
cmp eax, ebp
je 0x49ba11
push eax
push edi
call fcn.0049af07
add esp, 8
mov esi, eax
jmp 0x49ba13
xor esi, esi
mov eax, dword [esp + 0x80]
cmp eax, ebp
je 0x49bed1
push eax
call fcn.004b8ff7
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret
mov eax, dword [edi]
add eax, 2
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.004bb147
add esp, 8
cmp eax, ebp
jne 0x49bed3
mov edx, dword [edi]
lea eax, [esp + 0x44]
add edx, 2
push eax
mov dword [esp + 0x58], edx
call fcn.0049ae17
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x49bec4
lea ecx, [esp + 0x64]
push ecx
call fcn.0049ae17
mov esi, eax
add esp, 4
cmp esi, ebp
jne 0x49beb7
lea edx, [esp + 0x24]
push edi
push edx
call fcn.004b92a7
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x49beaa
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.004b92a7
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x49be9d
mov ecx, dword [edi + 8]
mov esi, dword [ebx + 8]
xor edx, edx
cmp ecx, esi
setne dl
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x1c], edx
call fcn.0049b087
cdq
mov ecx, 0x1c
idiv ecx
add esp, 4
cmp edx, 0x1b
jge 0x49bb2d
mov edi, 0x1b
sub edi, edx
lea edx, [esp + 0x24]
push edx
mov eax, edx
push edi
push eax
mov dword [esp + 0x20], edi
call fcn.004b8f07
mov esi, eax
add esp, 0xc
cmp esi, ebp
jne 0x49be90
lea ecx, [esp + 0x34]
push ecx
mov edx, ecx
push edi
push edx
call fcn.004b8f07
mov esi, eax
add esp, 0xc
cmp esi, ebp
jne 0x49be90
jmp 0x49bb31
mov dword [esp + 0x14], ebp
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x34]
dec ebx
dec ebp
mov edi, ebx
sub edi, ebp
lea eax, [esp + 0x34]
push edi
push eax
mov dword [esp + 0x18], ebp
call fcn.004bb0c7
mov esi, eax
add esp, 8
test esi, esi
jne 0x49be90
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0049b017
add esp, 8
cmp eax, 0xffffffff
je 0x49bbb4
jmp 0x49bb77
mov eax, dword [esp + 0x60]
inc dword [eax + edi*4]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
push ecx
mov edx, eax
push edx
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49be90
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0049b017
add esp, 8
cmp eax, 0xffffffff
jne 0x49bb77
lea edx, [esp + 0x34]
push edi
push edx
call fcn.004bb057
lea eax, [ebp + 1]
add esp, 8
cmp ebx, eax
jl 0x49be1a
cmp ebx, dword [esp + 0x24]
jg 0x49be0e
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
mov eax, dword [esi + ebx*4]
mov edx, dword [ecx + ebp*4]
cmp eax, edx
jne 0x49bc06
mov edx, dword [esp + 0x60]
mov eax, ebx
sub eax, ebp
lea edi, [eax*4]
mov dword [esp + 0x7c], eax
mov dword [edi + edx - 4], 0xfffffff
jmp 0x49bc56
mov esi, dword [esi + ebx*4 - 4]
xor ecx, ecx
shld ecx, eax, 0x1c
xor edi, edi
push edi
push edx
shl eax, 0x1c
or ecx, edi
or eax, esi
push ecx
push eax
call fcn.0047c1a7
test edx, edx
ja 0x49bc2d
cmp eax, 0xfffffff
jbe 0x49bc3a
mov eax, 0xfffffff
mov dword [esp + 0x20], 0
mov ecx, ebx
sub ecx, ebp
lea edi, [ecx*4]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x60]
and eax, 0xfffffff
mov dword [edi + ecx - 4], eax
mov eax, dword [esp + 0x60]
mov edx, dword [edi + eax - 4]
inc edx
and edx, 0xfffffff
mov dword [edi + eax - 4], edx
mov eax, dword [esp + 0x60]
mov ecx, dword [edi + eax - 4]
dec ecx
lea edx, [esp + 0x44]
and ecx, 0xfffffff
push edx
mov dword [edi + eax - 4], ecx
call fcn.004b8ff7
lea eax, [ebp - 1]
add esp, 4
test eax, eax
jge 0x49bc94
xor eax, eax
jmp 0x49bc9c
mov eax, dword [esp + 0x40]
mov eax, dword [eax + ebp*4 - 4]
mov ecx, dword [esp + 0x50]
mov dword [ecx], eax
mov edx, dword [esp + 0x40]
mov eax, dword [edx + ebp*4]
mov ecx, dword [esp + 0x50]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x60]
lea edx, [esp + 0x44]
mov dword [esp + 0x44], 2
mov ecx, dword [edi + eax - 4]
push edx
push ecx
push edx
call fcn.0049b877
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49be90
lea eax, [ebx - 2]
test eax, eax
jge 0x49bce4
xor eax, eax
jmp 0x49bceb
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + eax*4]
mov edx, dword [esp + 0x70]
mov dword [edx], eax
lea eax, [ebx - 1]
test eax, eax
jge 0x49bcfc
xor eax, eax
jmp 0x49bd04
mov ecx, dword [esp + 0x30]
mov eax, dword [ecx + ebx*4 - 4]
mov edx, dword [esp + 0x70]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + ebx*4]
mov edx, dword [esp + 0x70]
mov dword [edx + 8], ecx
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x48]
push ecx
mov dword [esp + 0x6c], 3
call fcn.004b9037
add esp, 8
cmp eax, 1
je 0x49bc69
mov eax, dword [esp + 0x60]
mov ecx, dword [edi + eax - 4]
lea edx, [esp + 0x44]
push edx
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0049b877
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49be90
mov ebp, dword [esp + 0x7c]
dec ebp
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.004bb0c7
mov esi, eax
add esp, 8
test esi, esi
jne 0x49be90
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
mov eax, ecx
push eax
call fcn.0049b627
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49be90
cmp dword [esp + 0x2c], 1
jne 0x49be0a
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0049af07
mov esi, eax
add esp, 8
test esi, esi
jne 0x49be90
lea eax, [esp + 0x44]
push ebp
push eax
call fcn.004bb0c7
mov esi, eax
add esp, 8
test esi, esi
jne 0x49be90
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x48]
push edx
mov eax, ecx
push eax
call fcn.0049b4a7
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x49be90
mov eax, dword [esp + 0x60]
mov ecx, dword [edi + eax - 4]
dec ecx
and ecx, 0xfffffff
mov dword [edi + eax - 4], ecx
mov ebp, dword [esp + 0x10]
dec ebx
lea eax, [ebp + 1]
cmp ebx, eax
jge 0x49bbcd
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x49be2c
mov dword [esp + 0x2c], 0
jmp 0x49be37
mov edx, dword [esp + 0x78]
mov eax, dword [edx + 8]
mov dword [esp + 0x2c], eax
mov esi, dword [esp + 0x80]
test esi, esi
je 0x49be61
lea ecx, [esp + 0x54]
push ecx
call fcn.004b8ed7
lea edx, [esp + 0x58]
push esi
push edx
call fcn.004bb007
mov eax, dword [esp + 0x24]
add esp, 0xc
mov dword [esi + 8], eax
mov esi, dword [esp + 0x84]
test esi, esi
je 0x49be8e
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
mov eax, ecx
push eax
call fcn.004b92d7
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.004bb007
add esp, 0x18
xor esi, esi
lea edx, [esp + 0x34]
push edx
call fcn.0049ae77
add esp, 4
lea eax, [esp + 0x24]
push eax
call fcn.0049ae77
add esp, 4
lea ecx, [esp + 0x64]
push ecx
call fcn.0049ae77
add esp, 4
lea edx, [esp + 0x44]
push edx
call fcn.0049ae77
add esp, 4
lea eax, [esp + 0x54]
push eax
call fcn.0049ae77
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x64
ret