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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50c540
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push ebx
push esi
push edi
mov eax, dword [0x53c1a4]
xor eax, esp
push eax
lea eax, [esp + 0x80]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [ebp + 0x10], 1
jne 0x4bf00b
cmp dword [ebp + 0x18], 4
jne 0x4bf00b
call fcn.004be430
test al, al
jne 0x4be6fe
mov eax, 0x8007000e
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
xor ebx, ebx
mov byte [esp + 0x16], bl
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
cmp edi, ebx
je 0x4be736
mov eax, dword [edi]
cmp eax, ebx
je 0x4be736
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], eax
cmp eax, ebx
ja 0x4be736
jb 0x4be731
cmp ecx, 0x1000000
ja 0x4be736
mov byte [esp + 0x16], 1
mov dword [esp + 0x38], esi
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x88], ebx
mov edi, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x24], ecx
cmp edi, ebx
je 0x4be75b
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x4be76a
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x24], edi
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x34], 0
mov edi, dword [edx + 4]
cmp edi, ebx
je 0x4be795
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x4be7a4
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x4c], edi
mov ecx, dword [esi + 0x48]
mov dword [esi + 0x44], ebx
mov dword [esi + 0x40], ecx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov byte [esi + 0x5c], 0
mov edi, dword [edx + 8]
cmp edi, ebx
je 0x4be7cf
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x4be7de
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov edx, dword [ebp + 0x14]
mov dword [esi + 0x74], edi
mov ecx, dword [esi + 0x70]
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x68], ecx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov byte [esi + 0x84], 0
mov edi, dword [edx + 0xc]
cmp edi, ebx
je 0x4be80c
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
mov eax, dword [esi + 0xb4]
cmp eax, ebx
je 0x4be81e
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi + 0xb4], edi
mov ecx, dword [esi + 0xb0]
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov byte [esi + 0xc4], 0
mov dword [esi + 0x90], ebx
mov dword [esi + 0x94], ebx
mov dword [esi + 0x98], 0xffffffff
mov dword [esi + 0x88], 1
mov byte [esi + 0x8c], 0
add esi, 0xc8
mov ecx, 0x102
mov eax, 0x400
mov edi, esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
mov byte [esp + 0x8c], 1
mov edx, dword [eax]
mov edx, dword [edx]
push 0x522dd0
push eax
call edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
xor edi, edi
mov byte [esp + 0x14], 0
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov eax, 0x20000
xor esi, esi
sub eax, edi
je 0x4be91d
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
lea ebx, [esp + 0x30]
push ebx
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, esi
add eax, edi
push eax
push ecx
mov ecx, dword [edx + 0xc]
call ecx
mov ebx, eax
test ebx, ebx
jne 0x4becee
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4be91d
add esi, eax
mov eax, 0x20000
sub eax, esi
sub eax, edi
jne 0x4be8e1
add esi, edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], 0
cmp esi, 5
jb 0x4bed7e
mov ebx, dword [ebp + 8]
add esi, 0xfffffffb
mov dword [esp + 0x34], esi
mov edx, dword [ebx + 8]
mov edi, dword [esp + 0x18]
mov al, byte [edi + edx]
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
lea esi, [ebx + 0x10]
mov byte [ecx + edx], al
inc dword [esi + 4]
mov byte [esp + 0x15], al
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jne 0x4be97d
cmp dword [esi + 0xc], eax
je 0x4be97d
call fcn.004b0850
test eax, eax
jne 0x4bef14
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x4be968
mov al, byte [esp + 0x15]
mov cl, al
and cl, 0xfe
cmp cl, 0xe8
je 0x4be9a6
cmp byte [esp + 0x14], 0xf
jne 0x4be99c
mov dl, al
and dl, 0xf0
cmp dl, 0x80
je 0x4be9a6
inc edi
mov dword [esp + 0x18], edi
jmp 0x4bec7d
mov eax, dword [ebx + 8]
mov cl, byte [eax + edi + 4]
movzx esi, byte [eax + edi + 3]
add eax, edi
movzx edx, cl
shl edx, 8
or esi, edx
movzx edx, byte [eax + 2]
movzx eax, byte [eax + 1]
shl esi, 8
or esi, edx
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x20]
lea edx, [esi + edi]
lea edx, [edx + eax + 5]
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x17], cl
mov dword [esp + 0x28], edx
test eax, eax
je 0x4beb3e
xor ecx, ecx
add edi, dword [esp + 0x44]
adc ecx, dword [esp + 0x48]
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], ecx
cmp dword [esp + 0x40], ecx
ja 0x4beab9
jb 0x4bea17
mov ecx, edi
cmp dword [esp + 0x3c], ecx
jae 0x4beab9
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x6c]
push ecx
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x54]
push ecx
push eax
call edx
mov edi, eax
test edi, edi
jne 0x4bea63
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x54], eax
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x58], ecx
adc ecx, eax
add dword [esp + 0x4c], 1
mov eax, dword [esp + 0x1c]
adc dword [esp + 0x50], edi
jmp 0x4bea9b
cmp edi, 1
je 0x4bea74
cmp edi, 0x80004001
jne 0x4bef27
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4bea8a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
or ecx, 0xffffffff
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
cmp ecx, dword [esp + 0x68]
jb 0x4bea17
ja 0x4beab9
mov edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x64]
jb 0x4bea17
test eax, eax
jne 0x4beae4
cmp byte [esp + 0x16], al
je 0x4beb05
cmp eax, dword [esp + 0x60]
ja 0x4beadd
jb 0x4beb66
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x28], eax
jb 0x4beb66
xor al, al
jmp 0x4beb68
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x54]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x58]
sub eax, edi
sbb edx, ecx
mov dword [esp + 0x78], edx
jne 0x4beb05
cmp eax, 0x1000000
jbe 0x4beb11
mov al, byte [esp + 0x17]
test al, al
je 0x4beb66
cmp al, 0xff
jmp 0x4beb60
mov eax, esi
cdq
add eax, dword [esp + 0x64]
adc edx, dword [esp + 0x68]
add eax, 5
adc edx, 0
cmp edx, ecx
jb 0x4beb3a
ja 0x4beb2c
cmp eax, edi
jb 0x4beb3a
cmp edx, dword [esp + 0x40]
ja 0x4beb3a
jb 0x4beb66
cmp eax, dword [esp + 0x3c]
jb 0x4beb66
xor al, al
jmp 0x4beb68
cmp byte [esp + 0x16], 0
je 0x4beb59
xor eax, eax
cmp eax, dword [esp + 0x60]
ja 0x4beb55
jb 0x4beb66
cmp edx, dword [esp + 0x5c]
jb 0x4beb66
xor al, al
jmp 0x4beb68
test cl, cl
je 0x4beb66
cmp cl, 0xff
je 0x4beb66
xor al, al
jmp 0x4beb68
mov al, 1
cmp byte [esp + 0x15], 0xe8
jne 0x4beb76
movzx ecx, byte [esp + 0x14]
jmp 0x4beb86
xor ecx, ecx
cmp byte [esp + 0x15], 0xe9
setne cl
add ecx, 0x100
mov edx, dword [ebx + 0x98]
lea edi, [ebx + 0x88]
test al, al
je 0x4bec38
mov eax, edx
shr eax, 0xb
imul eax, dword [ebx + ecx*4 + 0xc8]
add dword [edi + 8], eax
adc dword [edi + 0xc], 0
sub edx, eax
mov dword [edi + 0x10], edx
mov eax, dword [ebx + ecx*4 + 0xc8]
mov edx, eax
shr edx, 5
sub eax, edx
mov dword [ebx + ecx*4 + 0xc8], eax
mov eax, dword [edi + 0x10]
cmp eax, 0x1000000
jae 0x4bebdd
shl eax, 8
mov dword [edi + 0x10], eax
call fcn.004be0c0
add dword [esp + 0x18], 5
cmp byte [esp + 0x15], 0xe8
lea esi, [ebx + 0x38]
je 0x4bebef
lea esi, [ebx + 0x60]
mov edi, 0x18
mov eax, dword [esp + 0x28]
mov edx, dword [esi]
mov ecx, edi
shr eax, cl
mov ecx, dword [esi + 4]
mov byte [ecx + edx], al
inc dword [esi + 4]
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jne 0x4bec29
cmp dword [esi + 0xc], eax
je 0x4bec29
call fcn.004b0850
test eax, eax
jne 0x4bef6b
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 4]
jne 0x4bec14
sub edi, 8
jns 0x4bebf4
mov cl, byte [esp + 0x17]
mov byte [esp + 0x14], cl
jmp 0x4bec81
shr edx, 0xb
imul edx, dword [ebx + ecx*4 + 0xc8]
mov dword [edi + 0x10], edx
mov eax, dword [ebx + ecx*4 + 0xc8]
mov edx, 0x800
sub edx, eax
shr edx, 5
add edx, eax
mov dword [ebx + ecx*4 + 0xc8], edx
mov eax, dword [edi + 0x10]
cmp eax, 0x1000000
jae 0x4bec75
shl eax, 8
mov dword [edi + 0x10], eax
call fcn.004be0c0
inc dword [esp + 0x18]
mov al, byte [esp + 0x15]
mov byte [esp + 0x14], al
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x34]
jbe 0x4be93e
add dword [esp + 0x20], eax
add dword [esp + 0x44], eax
mov eax, dword [ebp + 0x1c]
adc dword [esp + 0x48], 0
test eax, eax
je 0x4becbc
mov ecx, dword [eax]
push 0
lea edx, [esp + 0x48]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
test edi, edi
jne 0x4bef7e
mov ecx, dword [esp + 0x2c]
xor edi, edi
cmp dword [esp + 0x18], ecx
jae 0x4bece7
mov esi, dword [esp + 0x18]
lea esp, [esp]
mov eax, dword [ebx + 8]
mov dl, byte [eax + esi]
mov esi, dword [esp + 0x18]
inc esi
mov byte [eax + edi], dl
inc edi
mov dword [esp + 0x18], esi
cmp esi, ecx
jb 0x4becd0
xor ebx, ebx
jmp 0x4be8d6
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
je 0x4bed08
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [ebp + 8]
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x4bed28
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x24], edi
mov eax, dword [esi + 0x4c]
cmp eax, edi
je 0x4bed3a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x4c], edi
mov eax, dword [esi + 0x74]
cmp eax, edi
je 0x4bed4c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x74], edi
mov eax, dword [esi + 0xb4]
cmp eax, edi
je 0x4bed64
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0xb4], edi
mov eax, ebx
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
test esi, esi
jbe 0x4bee69
mov ebx, dword [ebp + 8]
lea esp, [esp]
mov eax, dword [ebx + 8]
mov ecx, dword [esp + 0x18]
mov dl, byte [ecx + eax]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
lea esi, [ebx + 0x10]
mov byte [eax + ecx], dl
inc dword [esi + 4]
mov eax, dword [esi + 4]
mov byte [esp + 0x17], dl
cmp eax, dword [esi + 8]
jne 0x4bedd9
cmp dword [esi + 0xc], eax
je 0x4bedd9
lea ebx, [ebx]
call fcn.004b0850
test eax, eax
jne 0x4bef01
mov edx, dword [esi + 0xc]
cmp edx, dword [esi + 4]
jne 0x4bedc0
mov dl, byte [esp + 0x17]
cmp dl, 0xe8
jne 0x4bede5
movzx eax, byte [esp + 0x14]
jmp 0x4bee05
cmp dl, 0xe9
jne 0x4bedf1
mov eax, pe_nt_image_headers32
jmp 0x4bee05
cmp byte [esp + 0x14], 0xf
jne 0x4bee52
mov al, dl
and al, 0xf0
cmp al, 0x80
jne 0x4bee52
mov eax, 0x101
mov ecx, dword [ebx + 0x98]
lea edi, [ebx + 0x88]
shr ecx, 0xb
imul ecx, dword [ebx + eax*4 + 0xc8]
mov dword [edi + 0x10], ecx
mov ecx, dword [ebx + eax*4 + 0xc8]
mov esi, 0x800
sub esi, ecx
shr esi, 5
add esi, ecx
mov dword [ebx + eax*4 + 0xc8], esi
mov eax, dword [edi + 0x10]
cmp eax, 0x1000000
jae 0x4bee52
shl eax, 8
mov dword [edi + 0x10], eax
call fcn.004be0c0
mov dl, byte [esp + 0x17]
mov eax, dword [esp + 0x18]
inc eax
mov byte [esp + 0x14], dl
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x2c]
jb 0x4bed90
mov esi, dword [ebp + 8]
mov ebx, esi
call fcn.004be600
xor ebx, ebx
mov edi, eax
mov byte [esp + 0x88], bl
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x4bee8e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [esi + 0x24]
cmp eax, ebx
je 0x4beeab
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x4beebd
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x4c], ebx
mov eax, dword [esi + 0x74]
cmp eax, ebx
je 0x4beecf
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0x74], ebx
mov eax, dword [esi + 0xb4]
cmp eax, ebx
je 0x4beee7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi + 0xb4], ebx
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push 0x52e988
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x3c], eax
call fcn.004f0bbb
mov dword [esp + 0x34], eax
push 0x52e988
lea eax, [esp + 0x38]
push eax
call fcn.004f0bbb
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4bef3f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, ebx
mov dword [esp + 0x88], 0xffffffff
call fcn.004be1c0
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [esp + 0x34], eax
push 0x52e988
lea eax, [esp + 0x38]
push eax
call fcn.004f0bbb
mov byte [esp + 0x88], 0
mov eax, dword [esp + 0x1c]
xor esi, esi
cmp eax, esi
je 0x4bef98
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x88], 0xffffffff
mov eax, dword [ebx + 0x24]
cmp eax, esi
je 0x4befb5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx + 0x24], esi
mov eax, dword [ebx + 0x4c]
cmp eax, esi
je 0x4befc7
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx + 0x4c], esi
mov eax, dword [ebx + 0x74]
cmp eax, esi
je 0x4befd9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx + 0x74], esi
mov eax, dword [ebx + 0xb4]
cmp eax, esi
je 0x4beff1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebx + 0xb4], esi
mov eax, edi
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x80070057
mov ecx, dword [esp + 0x80]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18