Function at 0x4fb5b0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
xor edx, edx
push esi
push ebx
xor eax, eax
sub esp, 0x84
mov edi, dword [esp + 0xa0]
mov dword [esp + eax + 0x44], edx
add eax, 4
cmp eax, 0x20
jb 0x4fb5c5
test edi, edi
je 0x4fb5f0
mov eax, dword [esp + 0x9c]
lea ecx, [eax + edi*2]
nop
movzx edx, word [eax]
add eax, 2
add word [esp + edx*2 + 0x44], 1
cmp ecx, eax
jne 0x4fb5e0
movzx ecx, word [esp + 0x62]
test cx, cx
jne 0x4fb6e2
cmp word [esp + 0x60], 0
jne 0x4fbf2c
cmp word [esp + 0x5e], 0
jne 0x4fbf62
cmp word [esp + 0x5c], 0
jne 0x4fbf80
cmp word [esp + 0x5a], 0
jne 0x4fbfa0
cmp word [esp + 0x58], 0
jne 0x4fbfc0
cmp word [esp + 0x56], 0
jne 0x4fbfea
cmp word [esp + 0x54], 0
jne 0x4fc11f
cmp word [esp + 0x52], 0
jne 0x4fc1e5
cmp word [esp + 0x50], 0
jne 0x4fc1cc
cmp word [esp + 0x4e], 0
jne 0x4fc18c
cmp word [esp + 0x4c], 0
jne 0x4fc05b
cmp word [esp + 0x4a], 0
jne 0x4fc07e
cmp word [esp + 0x48], 0
jne 0x4fc0a4
cmp word [esp + 0x46], 0
jne 0x4fc0be
mov eax, dword [esp + 0xa4]
mov esi, dword [esp + 0xa4]
mov eax, dword [eax]
lea edx, [eax + 8]
mov dword [eax], 0x140
mov dword [esi], edx
mov dword [eax + 4], 0x140
mov eax, dword [esp + 0xa8]
mov dword [eax], 1
xor eax, eax
add esp, 0x84
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [esp + 0x46], 0
mov dword [esp + 0x10], 0xf
jne 0x4fbf76
lea esi, [esi]
lea edi, [edi]
cmp word [esp + 0x48], 0
jne 0x4fc0f8
cmp word [esp + 0x4a], 0
jne 0x4fbf58
cmp dword [esp + 0x10], 4
je 0x4fbfe0
cmp word [esp + 0x4c], 0
jne 0x4fbfe0
mov eax, dword [esp + 0x10]
cmp eax, 5
je 0x4fc003
cmp word [esp + 0x4e], 0
jne 0x4fc003
cmp eax, 6
je 0x4fc051
cmp word [esp + 0x50], 0
jne 0x4fc051
cmp eax, 7
je 0x4fc074
cmp word [esp + 0x52], 0
jne 0x4fc074
cmp eax, 8
je 0x4fc0d0
cmp word [esp + 0x54], 0
jne 0x4fc0d0
cmp eax, 9
je 0x4fc0da
cmp word [esp + 0x56], 0
jne 0x4fc0da
cmp eax, 0xa
je 0x4fc0e4
cmp word [esp + 0x58], 0
jne 0x4fc0e4
cmp eax, 0xb
je 0x4fc0ee
cmp word [esp + 0x5a], 0
jne 0x4fc0ee
cmp eax, 0xc
je 0x4fc102
cmp word [esp + 0x5c], 0
jne 0x4fc102
cmp eax, 0xd
je 0x4fc10c
cmp word [esp + 0x5e], 0
jne 0x4fc10c
cmp eax, 0xf
jne 0x4fc140
xor eax, eax
cmp word [esp + 0x60], 0
sete al
mov ebp, eax
add ebp, 0xe
lea esi, [esi]
movzx ebx, word [esp + 0x46]
mov eax, 2
sub eax, ebx
mov edx, ebx
js 0x4fba80
movzx ebx, word [esp + 0x48]
add eax, eax
sub eax, ebx
mov esi, ebx
js 0x4fba80
movzx ebx, word [esp + 0x4a]
add eax, eax
sub eax, ebx
mov word [esp], bx
js 0x4fba80
movzx ebx, word [esp + 0x4c]
add eax, eax
sub eax, ebx
mov word [esp + 6], bx
js 0x4fba80
movzx ebx, word [esp + 0x4e]
add eax, eax
sub eax, ebx
mov word [esp + 8], bx
js 0x4fba80
movzx ebx, word [esp + 0x50]
add eax, eax
sub eax, ebx
mov word [esp + 0xc], bx
js 0x4fba80
movzx ebx, word [esp + 0x52]
add eax, eax
sub eax, ebx
mov word [esp + 0x40], bx
js 0x4fba80
movzx ebx, word [esp + 0x54]
add eax, eax
sub eax, ebx
mov word [esp + 0x14], bx
js 0x4fba80
movzx ebx, word [esp + 0x56]
add eax, eax
sub eax, ebx
mov word [esp + 0x18], bx
js 0x4fba80
movzx ebx, word [esp + 0x58]
add eax, eax
sub eax, ebx
mov word [esp + 0x1c], bx
js 0x4fba80
movzx ebx, word [esp + 0x5a]
add eax, eax
sub eax, ebx
mov word [esp + 0x20], bx
js 0x4fba80
movzx ebx, word [esp + 0x5c]
add eax, eax
sub eax, ebx
mov word [esp + 0x24], bx
js 0x4fba80
movzx ebx, word [esp + 0x5e]
add eax, eax
sub eax, ebx
mov word [esp + 0x28], bx
js 0x4fba80
movzx ebx, word [esp + 0x60]
add eax, eax
sub eax, ebx
mov word [esp + 0x2c], bx
js 0x4fba80
add eax, eax
cmp eax, ecx
js 0x4fba80
je 0x4fb94a
mov eax, dword [esp + 0x98]
test eax, eax
je 0x4fba80
cmp dword [esp + 0x10], 1
jne 0x4fba80
mov word [esp + 0x68], dx
add edx, esi
mov eax, dword [esp + 0xa8]
mov word [esp + 0x6a], dx
add dx, word [esp]
mov ebx, dword [eax]
xor eax, eax
mov word [esp + 0x66], ax
mov word [esp + 0x6c], dx
add dx, word [esp + 6]
mov word [esp + 0x6e], dx
add dx, word [esp + 8]
mov word [esp + 0x70], dx
add dx, word [esp + 0xc]
mov word [esp + 0x72], dx
add dx, word [esp + 0x40]
mov word [esp + 0x74], dx
add dx, word [esp + 0x14]
mov word [esp + 0x76], dx
add dx, word [esp + 0x18]
mov word [esp + 0x78], dx
add dx, word [esp + 0x1c]
mov word [esp + 0x7a], dx
add dx, word [esp + 0x20]
mov word [esp + 0x7c], dx
add dx, word [esp + 0x24]
mov word [esp + 0x7e], dx
add dx, word [esp + 0x28]
mov word [esp + 0x80], dx
add dx, word [esp + 0x2c]
test edi, edi
mov word [esp + 0x82], dx
je 0x4fba2b
mov dword [esp], ebx
mov ebx, dword [esp + 0x9c]
xor eax, eax
mov esi, esi
lea edi, [edi]
movzx edx, word [ebx + eax*2]
test dx, dx
je 0x4fba21
movzx ecx, word [esp + edx*2 + 0x64]
lea esi, [ecx + 1]
mov word [esp + edx*2 + 0x64], si
mov esi, dword [esp + 0xac]
mov word [esi + ecx*2], ax
add eax, 1
cmp edi, eax
jne 0x4fba00
mov ebx, dword [esp]
mov eax, dword [esp + 0x10]
cmp ebx, eax
cmova ebx, eax
mov eax, 1
cmp ebx, ebp
mov esi, ebx
cmovb esi, ebp
mov ecx, esi
mov dword [esp + 0x20], esi
shl eax, cl
mov ecx, dword [esp + 0x98]
mov dword [esp + 0x30], eax
test ecx, ecx
je 0x4fbad0
cmp dword [esp + 0x98], 1
jne 0x4fba90
cmp eax, 0x354
jbe 0x4fc1a5
add esp, 0x84
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x84
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x98], 2
sete byte [esp + 0x42]
cmp dword [esp + 0x30], 0x250
movzx eax, byte [esp + 0x42]
jbe 0x4fbab0
test al, al
jne 0x4fba6c
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 0x5feac0
mov dword [esp + 0x38], 0x5feb00
jmp 0x4fbaec
mov eax, dword [esp + 0xac]
mov dword [esp + 0x24], 0x14
mov byte [esp + 0x42], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
cmp dword [esp + 0x98], 1
sete byte [esp + 0x43]
mov eax, dword [esp + 0xa4]
mov esi, dword [esp + 0xac]
xor edi, edi
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0xc], 0
mov eax, dword [eax]
mov dword [esp + 0x14], esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
mov esi, esi
lea edi, [edi]
mov eax, ebp
sub al, byte [esp + 0xc]
mov ebx, dword [esp + 0x24]
mov byte [esp + 0x40], 0
mov byte [esp + 6], al
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
lea edx, [eax + 1]
mov esi, eax
cmp edx, ebx
jb 0x4fbb81
cmp eax, ebx
jb 0x4fbf20
mov esi, dword [esp + 0x34]
sub eax, ebx
movzx ebx, byte [esi + eax*2]
mov esi, dword [esp + 0x38]
movzx esi, word [esi + eax*2]
mov byte [esp + 0x40], bl
mov eax, ebp
sub eax, dword [esp + 0xc]
mov edx, 1
mov ebx, 0xfffffffc
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, 1
shl edx, cl
movzx ecx, byte [esp + 8]
shl eax, cl
movzx ecx, byte [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp], eax
mov eax, edi
shl ebx, cl
movzx ecx, byte [esp + 0xc]
mov ebp, ebx
movzx ebx, byte [esp + 0x40]
shr eax, cl
mov ecx, dword [esp]
add ecx, eax
mov eax, dword [esp + 0x1c]
sub ecx, edx
lea ecx, [eax + ecx*4]
movzx eax, byte [esp + 6]
lea esi, [esi]
lea edi, [edi]
mov byte [ecx], bl
mov byte [ecx + 1], al
mov word [ecx + 2], si
add ecx, ebp
sub dword [esp], edx
jne 0x4fbbe0
mov ebp, dword [esp + 0x18]
mov eax, 1
lea ecx, [ebp - 1]
shl eax, cl
test edi, eax
je 0x4fbc08
shr eax, 1
test edi, eax
jne 0x4fbc02
test eax, eax
je 0x4fbc13
lea edx, [eax - 1]
and edx, edi
add eax, edx
movzx esi, word [esp + ebp*2 + 0x44]
lea edx, [esi - 1]
test dx, dx
mov word [esp + ebp*2 + 0x44], dx
jne 0x4fbc42
cmp ebp, dword [esp + 0x10]
je 0x4fc00d
mov esi, dword [esp + 0x14]
movzx edx, word [esi + 2]
mov esi, dword [esp + 0x9c]
movzx ebp, word [esi + edx*2]
mov ebx, dword [esp + 0x20]
cmp ebx, ebp
jae 0x4fbf0a
mov esi, dword [esp + 0x30]
sub esi, 1
and esi, eax
cmp esi, dword [esp + 0x2c]
je 0x4fbf0a
mov edi, dword [esp + 0xc]
movzx ecx, byte [esp + 8]
mov edx, 4
test edi, edi
cmove edi, ebx
mov ebx, ebp
shl edx, cl
sub ebx, edi
add dword [esp + 0x1c], edx
mov edx, 1
mov ecx, ebx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
shl edx, cl
cmp ebp, dword [esp + 0x10]
jae 0x4fbea7
movzx ecx, word [esp + ebp*2 + 0x44]
sub edx, ecx
test edx, edx
jle 0x4fbea7
lea ecx, [ebx + 1]
add edx, edx
lea ebx, [edi + ecx]
cmp ebx, dword [esp + 0x10]
jae 0x4fbea3
movzx ebx, word [esp + ebx*2 + 0x44]
sub edx, ebx
test edx, edx
jle 0x4fbea3
mov ebx, dword [esp + 8]
add edx, edx
lea ecx, [ebx + 2]
lea ebx, [edi + ecx]
cmp ebx, dword [esp + 0x10]
jae 0x4fbea3
movzx ebx, word [esp + ebx*2 + 0x44]
sub edx, ebx
test edx, edx
jle 0x4fbea3
mov ebx, dword [esp + 8]
add edx, edx
lea ecx, [ebx + 3]
lea ebx, [edi + ecx]
cmp ebx, dword [esp + 0x10]
jae 0x4fbea3
movzx ebx, word [esp + ebx*2 + 0x44]
sub edx, ebx
test edx, edx
jle 0x4fbea3
mov ebx, dword [esp + 8]
add edx, edx
lea ecx, [ebx + 4]
lea ebx, [edi + ecx]
cmp ebx, dword [esp + 0x10]
jae 0x4fbea3
movzx ebx, word [esp + ebx*2 + 0x44]
sub edx, ebx
test edx, edx
jle 0x4fbea3
mov ebx, dword [esp + 8]
add edx, edx
lea ecx, [ebx + 5]
lea ebx, [edi + ecx]
cmp ebx, dword [esp + 0x10]
jae 0x4fbea3
movzx ebx, word [esp + ebx*2 + 0x44]
sub edx, ebx
test edx, edx
jle 0x4fbea3
mov ebx, dword [esp + 8]
add edx, edx
lea ecx, [ebx + 6]
lea ebx, [edi + ecx]
cmp ebx, dword [esp + 0x10]
jae 0x4fbea3
movzx ebx, word [esp + ebx*2 + 0x44]
sub edx, ebx
test edx, edx
jle 0x4fbea3
mov ebx, dword [esp + 8]
add edx, edx
lea ecx, [ebx + 7]
lea ebx, [edi + ecx]
cmp ebx, dword [esp + 0x10]
jae 0x4fbea3
movzx ebx, word [esp + ebx*2 + 0x44]
sub edx, ebx
test edx, edx
jle 0x4fbea3
mov ebx, dword [esp + 8]
add edx, edx
lea ecx, [ebx + 8]
lea ebx, [edi + ecx]
cmp ebx, dword [esp + 0x10]
jae 0x4fbea3
movzx ebx, word [esp + ebx*2 + 0x44]
sub edx, ebx
test edx, edx
jle 0x4fbea3
mov ebx, dword [esp + 8]
add edx, edx
lea ecx, [ebx + 9]
lea ebx, [edi + ecx]
cmp ebx, dword [esp + 0x10]
jae 0x4fbea3
movzx ebx, word [esp + ebx*2 + 0x44]
sub edx, ebx
test edx, edx
jle 0x4fbea3
mov ebx, dword [esp + 8]
add edx, edx
add ebx, 0xa
lea ecx, [edi + ebx]
cmp ecx, dword [esp + 0x10]
jae 0x4fc116
movzx ecx, word [esp + ecx*2 + 0x44]
sub edx, ecx
test edx, edx
jle 0x4fc116
mov ebx, dword [esp + 8]
lea ecx, [ebx + 0xb]
lea ebx, [edx + edx]
lea edx, [edi + ecx]
cmp edx, dword [esp + 0x10]
jae 0x4fbea3
movzx edx, word [esp + edx*2 + 0x44]
sub ebx, edx
test ebx, ebx
mov edx, ebx
jle 0x4fbea3
mov ebx, dword [esp + 8]
lea ecx, [ebx + 0xc]
lea ebx, [edx + edx]
lea edx, [edi + ecx]
cmp edx, dword [esp + 0x10]
jae 0x4fbea3
movzx edx, word [esp + edx*2 + 0x44]
sub ebx, edx
test ebx, ebx
mov edx, ebx
jle 0x4fbea3
mov ebx, dword [esp + 8]
lea ecx, [ebx + 0xd]
lea ebx, [edx + edx]
lea edx, [edi + ecx]
cmp edx, dword [esp + 0x10]
jae 0x4fbea3
movzx edx, word [esp + edx*2 + 0x44]
sub ebx, edx
test ebx, ebx
jle 0x4fbea3
mov edx, dword [esp + 8]
add ebx, ebx
add edx, 0xe
lea ecx, [edi + edx]
cmp ecx, dword [esp + 0x10]
jae 0x4fc176
movzx ecx, word [esp + ecx*2 + 0x44]
sub ebx, ecx
mov ecx, dword [esp + 8]
add ecx, 0xf
test ebx, ebx
cmovg edx, ecx
mov dword [esp + 8], edx
jmp 0x4fbea7
mov dword [esp + 8], ecx
movzx ecx, byte [esp + 8]
mov edx, 1
shl edx, cl
add dword [esp + 0x28], edx
mov edi, dword [esp + 0x28]
cmp edi, 0x354
jbe 0x4fbece
cmp byte [esp + 0x43], 0
jne 0x4fba6c
cmp dword [esp + 0x28], 0x250
jbe 0x4fbee3
cmp byte [esp + 0x42], 0
jne 0x4fba6c
mov edi, dword [esp + 0x3c]
movzx ebx, byte [esp + 8]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], esi
lea edx, [edi + esi*4]
sub ecx, edi
mov byte [edx], bl
movzx ebx, byte [esp + 0x20]
sar ecx, 2
mov word [edx + 2], cx
mov byte [edx + 1], bl
add dword [esp + 0x14], 2
mov edi, eax
jmp 0x4fbb40
xor esi, esi
mov byte [esp + 0x40], 0x60
jmp 0x4fbb81
cmp word [esp + 0x46], 0
jne 0x4fc164
cmp word [esp + 0x48], 0
jne 0x4fc152
cmp word [esp + 0x4a], 0
mov dword [esp + 0x10], 0xe
je 0x4fb723
mov ebp, 3
jmp 0x4fb810
cmp word [esp + 0x46], 0
mov dword [esp + 0x10], 0xd
je 0x4fb700
mov ebp, 1
jmp 0x4fb810
cmp word [esp + 0x46], 0
mov dword [esp + 0x10], 0xc
je 0x4fb700
jmp 0x4fbf76
cmp word [esp + 0x46], 0
mov dword [esp + 0x10], 0xb
je 0x4fb700
jmp 0x4fbf76
cmp word [esp + 0x46], 0
mov dword [esp + 0x10], 0xa
je 0x4fb700
jmp 0x4fbf76
mov ebp, 4
jmp 0x4fb810
cmp word [esp + 0x46], 0
mov dword [esp + 0x10], 9
je 0x4fb700
jmp 0x4fbf76
mov ebp, 5
jmp 0x4fb810
test eax, eax
je 0x4fc029
mov esi, dword [esp + 0x1c]
movzx ebx, byte [esp + 6]
xor edx, edx
lea eax, [esi + eax*4]
mov byte [eax], 0x40
mov byte [eax + 1], bl
mov word [eax + 2], dx
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
lea eax, [eax + esi*4]
mov esi, dword [esp + 0xa4]
mov dword [esi], eax
mov eax, dword [esp + 0xa8]
mov esi, dword [esp + 0x20]
mov dword [eax], esi
xor eax, eax
jmp 0x4fb6d7
mov ebp, 6
jmp 0x4fb810
cmp word [esp + 0x46], 0
mov dword [esp + 0x10], 4
je 0x4fb700
jmp 0x4fbf76
mov ebp, 7
jmp 0x4fb810
cmp word [esp + 0x46], 0
jne 0x4fc17f
cmp word [esp + 0x48], 1
mov dword [esp + 0x10], 3
sbb ebp, ebp
not ebp
add ebp, 3
jmp 0x4fb810
cmp word [esp + 0x46], 1
mov dword [esp + 0x10], 2
sbb ebp, ebp
not ebp
add ebp, 2
jmp 0x4fb810
mov dword [esp + 0x10], 1
mov ebp, 1
jmp 0x4fb810
mov ebp, 8
jmp 0x4fb810
mov ebp, 9
jmp 0x4fb810
mov ebp, 0xa
jmp 0x4fb810
mov ebp, 0xb
jmp 0x4fb810
mov ebp, 2
jmp 0x4fb810
mov ebp, 0xc
jmp 0x4fb810
mov ebp, 0xd
jmp 0x4fb810
mov dword [esp + 8], ebx
jmp 0x4fbea7
cmp word [esp + 0x46], 0
mov dword [esp + 0x10], 8
je 0x4fb700
jmp 0x4fbf76
mov dword [esp + 0x10], 0xe
mov ebp, 0xe
jmp 0x4fb810
mov dword [esp + 0x10], 0xe
mov ebp, 2
jmp 0x4fb810
mov dword [esp + 0x10], 0xe
mov ebp, 1
jmp 0x4fb810
mov dword [esp + 8], edx
jmp 0x4fbea7
mov dword [esp + 0x10], 3
jmp 0x4fbf76
cmp word [esp + 0x46], 0
mov dword [esp + 0x10], 5
je 0x4fb700
jmp 0x4fbf76
mov dword [esp + 0x24], 0x101
mov dword [esp + 0x34], 0x5feb40
mov dword [esp + 0x38], 0x5feb80
mov byte [esp + 0x43], 1
mov byte [esp + 0x42], 0
jmp 0x4fbaf9
cmp word [esp + 0x46], 0
mov dword [esp + 0x10], 6
je 0x4fb700
jmp 0x4fbf76
cmp word [esp + 0x46], 0
mov dword [esp + 0x10], 7
je 0x4fb700
jmp 0x4fbf76