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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx]
push esi
mov esi, 8
push edi
cmp dword [ecx + 0x2aa684], esi
jne 0x4be073
mov eax, dword [ecx + 0x19dd28]
jmp 0x4be079
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + 0x34]
mov edi, dword [ebx + 0xc]
lea eax, [eax + eax*4]
add eax, eax
mov edx, eax
push edx
mov dword [ebx + 0x2c], eax
call fcn.004a5600
mov edi, dword [ebx]
cmp dword [edi + 0x2aa684], esi
jne 0x4be09e
mov eax, dword [edi + 0x19dd28]
jmp 0x4be0af
fld dword [edi + 0x19dd04]
fmul dword [edi + 0x19dcf4]
call fcn.00596d60
mov esi, edi
call fcn.004a6f20
mov ecx, dword [ebx + 0xc]
call fcn.004a5110
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [esi + edx]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0xc]
cmp byte [eax + 0x58], 0
mov edi, esi
mov dword [ebp - 0x14], esi
jne 0x4be0eb
mov ecx, dword [eax + 0x5c]
mov dword [ebp - 8], ecx
jmp 0x4be0f2
mov dword [ebp - 8], 0
mov eax, dword [ebx]
cmp byte [eax + 0x30a3a4], 0
mov byte [ebp + 0xf], 0
je 0x4be168
add eax, 0x30a3ac
lea ecx, [eax + 1]
mov dword [ebp - 0x1c], ecx
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4be110
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
test eax, eax
jle 0x4be168
push edx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
test eax, eax
je 0x4be168
mov edx, dword [ebp + 0x10]
push edx
mov edi, eax
push esi
push edi
mov dword [ebp - 0x18], edi
call sub.MSVCR100.dll_memcpy
xor eax, eax
add esp, 0xc
cmp dword [ebp + 0x10], eax
jle 0x4be162
mov ecx, dword [ebp + 0x10]
nop
movzx edx, byte [eax + edi]
mov dl, byte [edx + 0x60d628]
mov byte [eax + edi], dl
inc eax
cmp eax, ecx
jl 0x4be150
mov byte [ebp + 0xf], 1
mov edi, esi
cmp esi, dword [ebp - 0x20]
jae 0x4be4cb
jmp 0x4be176
mov edi, dword [ebp - 0x10]
cmp byte [ebp + 0xf], 0
je 0x4be214
cmp edi, dword [ebp - 0x14]
jb 0x4be214
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
add edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
cmp ecx, edx
ja 0x4be1d6
mov eax, dword [ebx]
cmp byte [eax + 0x30a3a5], 0
push esi
je 0x4be1ba
mov ecx, dword [ebp - 4]
add eax, 0x30a3ac
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_strncmp]
jmp 0x4be1ca
mov edx, dword [ebp - 4]
add eax, 0x30a3ac
push eax
push edx
call dword [sym.imp.MSVCR100.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4be1d6
add esi, edi
mov dword [ebp - 0x14], esi
cmp edi, dword [ebp - 0x14]
jb 0x4be204
mov eax, dword [ebx + 0xc]
cmp byte [eax + 0x58], 0
jne 0x4be1e9
mov ecx, dword [eax + 0x5c]
jmp 0x4be1eb
xor ecx, ecx
cmp dword [ebp - 8], ecx
je 0x4be214
cmp byte [eax + 0x58], 0
jne 0x4be1fb
mov eax, dword [eax + 0x5c]
jmp 0x4be211
mov dword [ebp - 8], 0
jmp 0x4be214
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x30a3a8]
cmp dword [ebp - 8], eax
je 0x4be214
mov dword [ebp - 8], eax
xor ecx, ecx
cmp dword [ebp - 4], ecx
je 0x4be21e
inc dword [ebp - 4]
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x1490], ecx
cmp eax, 0xffffffff
je 0x4be234
mov dword [ebx + 0x1490], eax
jmp 0x4be243
cmp dword [ebx + 0x14], ecx
je 0x4be243
movzx edx, byte [edi]
inc edi
mov dword [ebx + 0x1490], edx
movzx eax, byte [edi]
mov esi, 1
add edi, esi
mov dword [ebp - 0x10], edi
mov dword [ebx + 0x1494], eax
cmp dword [ebx + 0x14], ecx
je 0x4be277
cmp dword [ebx + 0x18], esi
jne 0x4be277
mov edx, dword [ebx + 0x1490]
shl edx, 8
or edx, eax
mov dword [ebx + 0x1494], edx
mov dword [ebx + 0x1490], ecx
mov eax, dword [ebx + 0x1484]
test eax, eax
jne 0x4be29b
mov eax, dword [ebx]
mov ecx, dword [eax + 0x19dd30]
push ecx
mov edi, ebx
call fcn.004bde70
mov eax, dword [ebx + 0x1484]
test eax, eax
je 0x4be2cb
cmp dword [eax], 0
mov edx, dword [ebx]
mov edi, dword [edx + 0x19dd44]
mov ecx, dword [edx + 0x19dd40]
jne 0x4be2cd
mov edx, dword [edx + 0x311e4c]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
imul ecx, edi
lea ecx, [edx + ecx*4]
mov dword [eax + 0x18], edx
mov dword [eax + 0x24], edi
mov dword [eax + 0x1c], ecx
jmp 0x4be2cd
xor esi, esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x48]
add edi, dword [ebx + 0x20]
and edi, 3
inc dword [eax + edi*4 + 0x68]
mov dword [ebp - 0xc], edi
cmp edi, 1
jne 0x4be2ec
mov edi, 3
jmp 0x4be2f6
cmp edi, 3
jne 0x4be2f9
mov edi, 1
mov dword [ebp - 0xc], edi
test esi, esi
je 0x4be4bf
mov eax, dword [ebx + 0x1484]
cmp dword [eax], 0
jne 0x4be32f
mov ecx, dword [ebp - 8]
movzx edx, cl
mov dword [eax + 0x34], edx
mov edx, ecx
shr edx, 8
and edx, 0xff
shr ecx, 0x10
and ecx, 0xff
mov dword [eax + 0x38], edx
mov dword [eax + 0x3c], ecx
mov eax, dword [ebx]
mov edx, dword [eax + 0x19dd30]
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + 0x7c]
mov esi, dword [ecx + 0x34]
imul eax, edx
mov dword [ebp - 0x24], edx
cdq
idiv esi
mov dword [ebp - 0x28], esi
mov esi, dword [ebx + 0x1484]
cmp dword [esi], 0
mov dword [ebp - 0x2c], eax
jne 0x4be36e
mov eax, dword [ecx + 0x78]
imul eax, dword [ebp - 0x24]
cdq
idiv dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x2c], eax
mov ecx, dword [ebx + 0x1484]
push edi
call fcn.004b5770
mov esi, dword [ebx + 0x1484]
cmp dword [esi], 0
mov ecx, dword [ebx + 0x1494]
jne 0x4be3a7
mov eax, dword [esi + 8]
test eax, eax
je 0x4be3a1
push ecx
push eax
call fcn.005521f0
add esp, 8
mov dword [esi + 0xc], eax
jmp 0x4be3a7
mov dword [esi], 0xef7b
mov eax, dword [ebx + 0x1484]
cmp dword [eax], 0
je 0x4be3b8
mov dword [eax], 0
mov edx, dword [ebx]
cmp dword [edx + 0x2aa684], 8
jne 0x4be4e6
mov esi, dword [ebx + 0x1484]
cmp dword [esi], 0
jne 0x4be415
mov eax, dword [esi + 8]
test eax, eax
je 0x4be407
mov ecx, dword [esi + 0xc]
push 8
push ecx
push eax
call fcn.005549c0
add esp, 0xc
mov dword [esi], eax
test eax, eax
jne 0x4be415
mov eax, dword [esi + 8]
test eax, eax
je 0x4be40f
mov edx, dword [eax + 0x54]
push 2
push edx
call fcn.00554090
add esp, 8
mov dword [esi], eax
jmp 0x4be415
mov dword [esi], 0xef7d
jmp 0x4be415
mov dword [esi], 0xef80
mov esi, dword [ebx + 0x1484]
xor ecx, ecx
mov eax, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov edx, ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
cmp dword [esi], eax
jne 0x4be44f
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x54]
mov esi, dword [eax + 0x54]
mov ecx, dword [eax + 0x58]
mov edx, dword [eax + 0x4c]
mov dword [ebp - 0x38], esi
mov esi, dword [eax + 0x68]
mov eax, dword [eax + 0x64]
mov dword [ebp - 0x34], esi
mov esi, dword [ebx + 0xc]
mov esi, dword [esi + 0x78]
mov dword [ebp - 0x2c], esi
add esi, eax
mov dword [ebp - 0x28], esi
js 0x4be4aa
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x2c]
add esi, esi
add esi, esi
add esi, esi
add edi, esi
add edi, eax
mov eax, dword [ebx + 0xc]
cmp edi, dword [eax + 0x1c]
jg 0x4be4a7
mov edi, dword [eax + 0x7c]
sub edi, dword [ebp - 0x34]
mov dword [ebp - 0x2c], edi
js 0x4be4a7
add edi, edx
cmp edi, dword [eax + 0x20]
jg 0x4be4a7
mov eax, dword [ebp - 0x2c]
push 0
push 0
push 0
push 0
push edx
push esi
push ecx
mov ecx, dword [ebp - 0x28]
push edx
push esi
mov esi, dword [ebx]
push ecx
call fcn.004b7930
add esp, 0x28
mov edi, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x1484]
push 0
mov ebx, edi
call fcn.004bdf40
mov ebx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x20]
jb 0x4be173
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebx + 0xc]
add esp, 4
cmp byte [eax + 0x58], 0
jne 0x4be4f3
mov ecx, dword [eax + 0x5c]
jmp 0x4be4f5
mov eax, dword [ebx + 0x1484]
call fcn.004b5be0
jmp 0x4be4aa
xor ecx, ecx
cmp dword [ebp - 8], ecx
je 0x4be53a
cmp byte [eax + 0x58], 0
jne 0x4be505
mov eax, dword [eax + 0x5c]
jmp 0x4be507
xor eax, eax
mov ecx, dword [ebx]
test eax, eax
jne 0x4be515
mov dword [ecx + 0x19dd4c], eax
jmp 0x4be53a
mov edx, eax
mov esi, eax
sar edx, 0x10
and esi, 0xff
and edx, 0xff
shl esi, 0x10
or edx, esi
and eax, 0xff00ff00
or edx, eax
mov dword [ecx + 0x19dd4c], edx
mov ecx, dword [ebx + 0xc]
cmp dword [ecx + 0x60], 0
je case.default.0x4be562
mov edx, dword [ebx + 0x20]
mov esi, dword [ebx + edx*4 + 0x54]
test esi, esi
jle case.default.0x4be562
mov eax, dword [ecx + 0x48]
cmp eax, 3
ja case.default.0x4be562
jmp dword [eax*4 + 0x4be634]
mov edi, dword [ecx + 0x84]
mov eax, dword [ecx + 0x78]
push 0
push 0
push 0
push 0
push 8
push 8
push 0x5c7364
sub eax, edi
push esi
push eax
mov eax, dword [ebx + edx*4 + 0x64]
add eax, dword [ecx + 0x88]
push edi
jmp 0x4be619
mov eax, dword [ecx + 0x88]
push 0
push 0
push 0
push 3
push 8
push 8
push 0x5c7364
push esi
mov esi, dword [ecx + 0x7c]
mov ecx, dword [ecx + 0x84]
sub esi, eax
sub ecx, dword [ebx + edx*4 + 0x64]
push esi
push ecx
jmp 0x4be619
mov edi, dword [ecx + 0x78]
mov eax, dword [ecx + 0x84]
push 0
push 0
push 0
push 2
push 8
push 8
push 0x5c7364
sub eax, edi
push esi
push eax
mov eax, dword [ecx + 0x88]
sub eax, dword [ebx + edx*4 + 0x64]
push edi
jmp 0x4be619
mov eax, dword [ecx + 0x7c]
mov edx, dword [ebx + edx*4 + 0x64]
push 0
push 0
push 0
push 1
push 8
push 8
push 0x5c7364
push esi
mov esi, dword [ecx + 0x88]
sub esi, eax
add eax, 8
add edx, dword [ecx + 0x84]
push esi
push edx
mov esi, dword [ebx]
call fcn.004b7930
add esp, 0x28
mov ecx, dword [ebx + 0xc]
call fcn.004a5260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc