Function at 0x4f1ac0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x20]
push ebx
push ebp
push esi
mov cl, byte [eax + 4]
push edi
test cl, cl
mov dword [esp + 0x10], 0
mov byte [esp + 0x18], cl
je 0x4f1f17
mov eax, dword [eax]
mov ebp, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov ebx, esi
mov dword [esp + 0x28], esi
lea ecx, [ebp + ebp]
sub ebx, ecx
mov dword [esp + 0x24], ecx
mov al, byte [ebx + 2]
cmp al, 3
jne 0x4f1b22
mov eax, dword [0x549b40]
push 0x219
push 0x76
push 0xe
mov ecx, dword [eax]
push 0xf
push 0x1f8
push 0x5de
jmp 0x4f1cad
cmp al, 4
jne 0x4f1b6f
mov ecx, dword [esp + 0x38]
mov eax, dword [0x549b40]
mov edi, dword [esp + 0x34]
push 0x219
mov edx, dword [eax]
push 0x76
push 0xd
push 0xf
push 0x1f8
push 0x50d
push ecx
push edi
push 5
push eax
call dword [edx + 0x74]
test eax, eax
fnclex
jge 0x4f1cd8
mov edx, dword [0x549b40]
push 0x74
push 0x420aa0
push edx
jmp 0x4f1cd1
cmp al, 5
jne 0x4f1b94
mov eax, dword [0x549b40]
push 0x219
push 0x76
push 0xd
mov ecx, dword [eax]
push 0xf
push 0x1f8
push 0x592
jmp 0x4f1cad
cmp al, 0x20
jne 0x4f1bef
mov ecx, dword [esp + 0x38]
mov eax, dword [0x549b40]
mov edi, dword [esp + 0x34]
push 0x219
mov edx, dword [eax]
push 0x76
push 0xd
push 0xc
push 0x1f8
push 0x5cb
push ecx
push edi
push 5
push eax
call dword [edx + 0x74]
test eax, eax
fnclex
jge 0x4f1bdf
mov edx, dword [0x549b40]
push 0x74
push 0x420aa0
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
add edi, 0x10
mov dword [esp + 0x10], 1
jmp 0x4f1ce9
cmp al, 0x3c
jne 0x4f1c35
mov edx, dword [esp + 0x38]
mov eax, dword [0x549b40]
mov edi, dword [esp + 0x34]
push 0x219
mov ecx, dword [eax]
push 0x76
push 0xd
push 0xd
push 0x1f8
push 0x533
push edx
push edi
push 5
push eax
call dword [ecx + 0x74]
test eax, eax
fnclex
jge 0x4f1c80
mov ecx, dword [0x549b40]
push 0x74
push 0x420aa0
push ecx
jmp 0x4f1c79
cmp al, 0x5b
jne 0x4f1c8d
mov ecx, dword [esp + 0x38]
mov eax, dword [0x549b40]
mov edi, dword [esp + 0x34]
push 0x219
mov edx, dword [eax]
push 0x76
push 0xd
push 0xd
push 0x1f8
push 0x4fa
push ecx
push edi
push 5
push eax
call dword [edx + 0x74]
test eax, eax
fnclex
jge 0x4f1c80
mov edx, dword [0x549b40]
push 0x74
push 0x420aa0
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
add edi, 0x11
mov dword [esp + 0x10], 1
jmp 0x4f1ce9
cmp al, 0x5d
jne 0x4f1ce5
mov eax, dword [0x549b40]
push 0x219
push 0x76
push 0xd
mov ecx, dword [eax]
push 0xf
push 0x1f8
push 0x4e7
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
push edx
push edi
push 5
push eax
call dword [ecx + 0x74]
test eax, eax
fnclex
jge 0x4f1cd8
mov ecx, dword [0x549b40]
push 0x74
push 0x420aa0
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
add edi, 0x13
mov dword [esp + 0x10], 1
jmp 0x4f1ce9
mov edi, dword [esp + 0x34]
movzx ax, byte [ebx + 3]
cwd
mov cx, 0xf
idiv cx
test dx, dx
jne 0x4f1d0e
mov dword [esp + 0x34], 0xe
mov dword [esp + 0x14], 0x104
jmp 0x4f1d1e
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x14], 0x3f9
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
xor ecx, ecx
mov dword [esp + 0x10], eax
sub eax, ebp
mov dl, byte [esi + eax*2]
mov cl, byte [esi + eax*2 + 1]
lea eax, [esi + eax*2]
mov ebp, edx
mov edx, dword [0x549f54]
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov ebx, dword [edx + 0x14]
mov eax, dword [edx + 0xc]
add esi, ecx
mov ecx, dword [esp + 0x34]
sub ecx, ebx
mov dword [esp + 0x30], eax
mov eax, ecx
shl eax, 4
add eax, ecx
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x30]
lea ecx, [eax + ecx*2]
xor eax, eax
mov al, byte [ecx + ebp + 6]
mov ecx, dword [esp + 0x3c]
add eax, edi
cmp eax, ecx
mov dword [esp + 0x1c], eax
jge 0x4f1e78
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
and eax, 0xff
mov dword [esp + 0x20], eax
lea eax, [edx + edx]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
sub ecx, ebx
push 0x219
mov eax, ecx
push 0x76
shl eax, 4
add eax, ecx
push 0xf
lea ecx, [eax + eax*2]
movsx eax, word [edx + ecx*2]
push eax
imul eax, ebp
mov ecx, dword [0x549b40]
push esi
push eax
mov eax, dword [esp + 0x50]
mov edx, dword [ecx]
push eax
push edi
push 5
push ecx
call dword [edx + 0x74]
test eax, eax
fnclex
jge 0x4f1dee
mov ecx, dword [0x549b40]
push 0x74
push 0x420aa0
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
cmp edx, eax
je 0x4f1f17
mov ecx, edx
mov esi, dword [esp + 0x24]
inc ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
add ecx, 2
xor ebx, ebx
mov eax, ecx
mov dword [esp + 0x18], ecx
sub eax, esi
mov bl, byte [eax + edx]
mov eax, ecx
sub eax, esi
xor ecx, ecx
mov ebp, ebx
mov cl, byte [eax + edx + 1]
mov edx, dword [0x549f54]
mov esi, ecx
mov ecx, dword [esp + 0x14]
mov ebx, dword [edx + 0x14]
mov eax, dword [edx + 0xc]
add esi, ecx
mov ecx, dword [esp + 0x34]
sub ecx, ebx
mov dword [esp + 0x30], eax
mov eax, ecx
shl eax, 4
add eax, ecx
lea ecx, [eax + eax*2]
mov eax, dword [esp + 0x30]
lea ecx, [eax + ecx*2]
xor eax, eax
mov al, byte [ecx + ebp + 6]
mov ecx, dword [esp + 0x3c]
add eax, edi
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x4f1d98
mov dword [esp + 0x3c], 3
mov ebx, dword [esp + 0x34]
mov eax, dword [edx + 0x14]
mov ecx, ebx
push 0x219
sub ecx, eax
push 0x76
mov eax, ecx
push 0xf
shl eax, 4
add eax, ecx
mov ecx, dword [edx + 0xc]
lea eax, [eax + eax*2]
mov ax, word [ecx + eax*2]
mov ecx, dword [0x549b40]
movsx ebp, ax
push ebp
lea ebp, [eax*8]
sub ebp, eax
mov edx, dword [ecx]
shl ebp, 1
movsx eax, bp
push esi
push eax
mov eax, dword [esp + 0x50]
push eax
push edi
push 5
push ecx
call dword [edx + 0x74]
test eax, eax
fnclex
jge 0x4f1ee8
mov ecx, dword [0x549b40]
push 0x74
push 0x420aa0
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, dword [0x549f54]
mov ecx, ebx
xor ebx, ebx
sub ecx, dword [edx + 0x14]
mov eax, ecx
shl eax, 4
add eax, ecx
mov ecx, dword [edx + 0xc]
lea eax, [eax + eax*2]
mov bl, byte [ecx + eax*2 + 0x14]
mov eax, dword [esp + 0x3c]
add edi, ebx
dec eax
mov dword [esp + 0x3c], eax
jne 0x4f1e80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10