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

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push esi
push edi
mov edi, dword [esp + 0x34]
xor ebx, ebx
push eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], edi
call fcn.004df880
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x4bec0e
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret 0x1c
cmp dword [esi + 0x1c], ebx
je 0x4bec03
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0x72c]
imul eax, eax, 0x98
cmp dword [eax + ecx], ebx
mov dword [esp + 0x14], eax
je 0x4bec03
cmp dword [esi + 0x654], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MulDiv]
je 0x4bec55
mov edx, dword [esi + 0x514]
mov eax, dword [esi + 0x568]
push edx
push 0x5a0
push eax
call ebx
add edi, eax
mov dword [esp + 0x34], edi
mov ecx, dword [esi + 0x500]
mov edx, dword [esp + 0x30]
push ebp
push 0x5a0
push ecx
push edx
call ebx
mov ebp, eax
mov eax, dword [esi + 0x504]
push 0x5a0
push eax
push edi
call ebx
mov ecx, dword [esi + 0x70c]
xor edi, edi
test ecx, ecx
mov ebx, eax
jle 0x4becaf
mov eax, dword [esi + 0x704]
mov edx, dword [esp + 0x30]
cmp dword [eax], 0
jne 0x4bec9f
cmp dword [eax + 0x88], edx
je 0x4becaf
add edi, 1
add eax, 0xb4
cmp edi, dword [esi + 0x70c]
jl 0x4bec92
cmp edi, ecx
jge 0x4becc8
mov edx, dword [esi + 0x704]
mov ecx, edi
imul ecx, ecx, 0xb4
mov dword [ecx + edx], 1
cmp edi, dword [esi + 0x70c]
jge 0x4bed09
mov eax, dword [esp + 0x44]
test eax, eax
jge 0x4becf6
mov ecx, dword [esi + 0x704]
mov eax, edi
imul eax, eax, 0xb4
mov edx, dword [ecx + eax + 4]
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + edx*4]
mov eax, dword [ecx + 0x34]
mov edx, dword [esi + 0x530]
add edx, 1
cmp eax, edx
jne 0x4bed09
add ebx, dword [esi + 0x528]
push ebx
push ebp
push esi
call fcn.004fbb60
push ebx
push esi
mov dword [esp + 0x40], eax
call fcn.004b1a40
add esp, 0x14
cmp edi, dword [esi + 0x70c]
jge 0x4bed3a
mov eax, dword [esi + 0x704]
imul edi, edi, 0xb4
mov dword [edi + eax], 0
mov ecx, dword [esi + 0x72c]
mov edx, dword [esp + 0x18]
test byte [edx + ecx + 0x28], 0x60
je 0x4bedb9
mov ecx, dword [esi + 0x5e4]
xor edi, edi
test ecx, ecx
jle 0x4bed76
mov eax, dword [esi + 0x138]
mov edx, dword [esp + 0x30]
mov ebp, dword [eax]
cmp dword [ebp + 0x30], edx
je 0x4bed76
add edi, 1
add eax, 4
cmp edi, dword [esi + 0x5e4]
jl 0x4bed61
cmp edi, ecx
jge 0x4bedb5
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx + 0x14]
mov eax, dword [esi + 0x2b38]
imul edx, edx, 0x58
test dword [edx + eax + 0x18], 0x3000
jne 0x4bedad
push 0xffffffffffffffff
push edi
push esi
call fcn.0053ab30
add esp, 0xc
cmp eax, dword [esi + 0x39f8]
jne 0x4bedb5
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], edi
mov ecx, dword [esp + 0x2c]
push ecx
push esi
call fcn.004bdd00
mov ebp, eax
push ebp
push esi
mov dword [esp + 0x54], ebp
call fcn.004bb850
push esi
mov edi, eax
call fcn.004aec90
mov edx, dword [esi + 0x72c]
mov eax, dword [esp + 0x2c]
add esp, 0x14
test byte [eax + edx + 0x28], 0x60
je 0x4bef2c
cmp dword [esp + 0x1c], 0
mov eax, ebp
jne 0x4bedfe
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.004aea30
mov edx, dword [esi + 0x39c0]
mov edi, eax
mov ecx, edi
imul ecx, ecx, 0x98
add esp, 8
fld dword [edx + ecx + 0xc]
fmul qword [0x5e8de0]
call fcn.005ac350
imul edi, edi, 0x70
mov ecx, dword [esi + 0x39c4]
mov edx, dword [ecx + edi + 0x5c]
mov ebx, eax
mov eax, dword [esi + 0x514]
push eax
push 0x5a0
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov ebp, eax
mov eax, dword [esi + 0x39f8]
cmp eax, dword [esi + 0x530]
jle 0x4bee7a
mov ecx, dword [esi + 0x504]
mov edx, dword [esi + 0x528]
push ecx
push 0x5a0
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, dword [esp + 0x38]
sub edi, eax
jmp 0x4bee7e
mov edi, dword [esp + 0x38]
mov eax, dword [esi + 0x72c]
mov ecx, dword [esp + 0x18]
test byte [ecx + eax + 0x28], 0x20
mov dword [esp + 0x2c], edi
je 0x4beee4
cmp dword [esi + 0x654], 0
je 0x4beeb9
mov edx, dword [esi + 0x514]
mov eax, dword [esi + 0x568]
push edx
push 0x5a0
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
sub edi, eax
jmp 0x4beec8
cmp dword [esi + 0x5b84], 0
je 0x4beec6
add edi, ebp
jmp 0x4beec8
add edi, ebx
cmp dword [esi + 0x5b84], 0
mov dword [esp + 0x2c], edi
jne 0x4bef45
cmp dword [esi + 0x654], 0
jne 0x4bef45
add dword [esp + 0x14], ebx
jmp 0x4bef45
cmp dword [esi + 0x654], 0
je 0x4bef0c
mov ecx, dword [esi + 0x514]
mov edx, dword [esi + 0x568]
push ecx
push 0x5a0
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
add eax, ebx
sub edi, eax
jmp 0x4bef19
cmp dword [esi + 0x5b84], 0
je 0x4bef45
sub ebp, ebx
add edi, ebp
cmp dword [esi + 0x5b84], 0
mov dword [esp + 0x2c], edi
je 0x4bef45
sub dword [esp + 0x14], ebx
jmp 0x4bef45
mov eax, dword [esi + 0x504]
push eax
push 0x5a0
sub ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x5d8]
lea eax, [edx - 1]
test eax, eax
jl 0x4bef71
mov ecx, dword [esi + 0x138]
mov edi, dword [esp + 0x30]
lea ecx, [ecx + eax*4]
nop
mov ebx, dword [ecx]
cmp dword [ebx + 0x30], edi
jne 0x4bef71
sub eax, 1
sub ecx, 4
test eax, eax
jge 0x4bef60
mov edi, dword [esi + 0x5e4]
lea ebx, [eax + 1]
lea eax, [edx + 1]
cmp eax, edi
mov dword [esp + 0x10], ebx
jge 0x4befa9
mov edx, dword [esi + 0x138]
lea ecx, [edx + eax*4]
mov edx, dword [esp + 0x30]
mov ebp, dword [ecx]
cmp dword [ebp + 0x30], edx
jne 0x4befad
add eax, 1
add ecx, 4
cmp eax, dword [esi + 0x5e4]
jl 0x4bef92
jmp 0x4befad
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x1c], 0
lea ebp, [eax - 1]
je 0x4bf117
mov eax, dword [esp + 0x44]
cmp eax, ebx
jl 0x4befce
lea ecx, [ebp + 1]
cmp eax, ecx
jle 0x4bf117
cmp edi, 0x1388
jg 0x4befea
push 0x31
push 0
push 0
push 0
push edx
push esi
call fcn.004fa650
add esp, 0x18
jmp 0x4beff7
push esi
call fcn.004f8850
add esp, 4
mov dword [esp + 0x20], eax
mov edi, dword [esp + 0x44]
mov edx, dword [esi + 0x138]
add edi, edi
add edi, edi
mov eax, dword [edi + edx]
mov ecx, dword [eax + 0x14]
mov edx, dword [esi + 0x2b38]
imul ecx, ecx, 0x58
mov eax, dword [ecx + edx + 0x18]
and eax, 0x3000
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x5e4]
sub ebp, ebx
add ebp, 1
add eax, ebp
push eax
push esi
mov dword [esp + 0x38], ebp
call fcn.004e2e50
add esp, 8
test eax, eax
je 0x4bf2e2
mov ecx, dword [esp + 0x44]
push 0x42
push ebp
push ecx
push esi
call fcn.004f2400
add esp, 0x10
cmp ebx, dword [esp + 0x44]
jle 0x4bf061
add ebx, ebp
mov dword [esp + 0x10], ebx
mov edx, dword [esi + 0x638]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x24], edx
mov dword [esi + 0x638], ebx
jle 0x4bf0dc
mov ebp, dword [esp + 0x10]
add ebp, ebp
add ebp, ebp
nop
mov eax, dword [esp + 0x44]
add eax, ebx
push eax
push esi
call fcn.004f0420
mov eax, dword [esi + 0x138]
mov ecx, dword [eax + ebp]
mov dword [eax + edi], ecx
mov edx, dword [esi + 0x138]
mov eax, dword [esp + 0x24]
mov dword [edx + ebp], 0
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + edi]
push eax
mov eax, dword [edx + 0x14]
push eax
push esi
call fcn.004bb020
mov ecx, dword [esi + 0x138]
mov edx, dword [ecx + edi]
add ebx, 1
add esp, 0x14
add ebp, 4
add edi, 4
cmp ebx, dword [esp + 0x30]
mov dword [edx + 0x14], eax
jl 0x4bf080
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
push 0x44
push ebx
push edi
push esi
mov dword [esi + 0x638], eax
call fcn.004f2400
mov eax, dword [esp + 0x54]
add esp, 0x10
cmp edi, eax
jge 0x4bf105
sub eax, ebx
mov dword [esi + 0x5d8], eax
mov dword [esi + 0x47c], 0
jmp 0x4bf129
push 0x32
push 0
push 0
push 0
push edx
push esi
call fcn.004fa650
add esp, 0x18
mov ecx, dword [esi + 0x72c]
mov ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
mov dword [ecx + ebp + 4], edx
mov eax, dword [esi + 0x72c]
mov ecx, dword [esp + 0x38]
mov dword [eax + ebp + 8], ecx
mov edx, dword [esi + 0x72c]
test byte [edx + ebp + 0x28], 0x60
lea eax, [edx + ebp]
je 0x4bf162
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc], ecx
jmp 0x4bf169
mov edx, dword [esp + 0x2c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x3c]
test edx, edx
jle 0x4bf17b
mov eax, dword [esi + 0x72c]
mov dword [eax + ebp + 0x10], edx
mov ecx, dword [esp + 0x40]
test ecx, ecx
jl 0x4bf18d
mov eax, dword [esi + 0x72c]
mov dword [eax + ebp + 0x1c], ecx
mov eax, dword [esi + 0x72c]
add eax, ebp
test dword [eax + 0x28], 0x380
je 0x4bf1a4
mov edi, dword [eax + 0x1c]
mov dword [eax + 0x18], edi
mov eax, dword [esi + 0x72c]
add eax, ebp
cmp dword [eax + 0x60], 0x4b
jne 0x4bf25e
test edx, edx
jg 0x4bf1c2
test ecx, ecx
jle 0x4bf25e
mov ebx, dword [eax + 0x48]
test ebx, ebx
jle 0x4bf25e
test edx, edx
jle 0x4bf1e6
mov edi, dword [esi + 0x3434]
mov eax, ebx
imul eax, eax, 0x170
mov dword [edi + eax + 0xb4], edx
test ecx, ecx
jle 0x4bf1ff
mov eax, dword [esi + 0x3434]
mov edx, ebx
imul edx, edx, 0x170
mov dword [eax + edx + 0xb0], ecx
mov ecx, dword [esi + 0x500]
mov edx, dword [esi + 0x3434]
mov ebp, dword [sym.imp.KERNEL32.dll_MulDiv]
mov edi, ebx
imul edi, edi, 0x170
mov eax, dword [edi + edx + 0xb4]
push 0
push 0x5a0
push ecx
push eax
call ebp
mov ecx, dword [esi + 0x504]
mov edx, dword [esi + 0x3434]
push eax
mov eax, dword [edi + edx + 0xb0]
push 0x5a0
push ecx
push eax
call ebp
push eax
push ebx
push esi
call fcn.004e13e0
push ebx
push esi
call fcn.004ca4b0
mov ebp, dword [esp + 0x34]
add esp, 0x1c
cmp dword [esi + 0xa154], 0
je 0x4bf274
push 1
push esi
call fcn.00503a90
add esp, 8
jmp 0x4bf2c1
xor edi, edi
cmp dword [esi + 0xa9c], edi
jle 0x4bf2c1
xor ebx, ebx
mov ecx, dword [esi + 0xa98]
cmp dword [ecx + ebx + 0x60], 0
jne 0x4bf29d
mov edx, dword [esi + 0x72c]
test dword [edx + ebp + 0x28], 0x4000
je 0x4bf2b3
xor eax, eax
cmp dword [esi + 0xa154], eax
setne al
push eax
push edi
push esi
call fcn.004fff70
add esp, 0xc
add edi, 1
add ebx, 0x78
cmp edi, dword [esi + 0xa9c]
jl 0x4bf280
cmp dword [esp + 0x20], 0
je 0x4bf2d1
push esi
call fcn.004f8850
add esp, 4
push 1
push 0
push 1
push 0
push esi
call fcn.0052b8f0
add esp, 0x14
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x18
ret 0x1c