Function at 0x5abc50
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x318
mov al, byte [0x5b8b7c]
push ebx
push ebp
push esi
mov esi, edx
push edi
mov edx, ecx
mov byte [esp + 0x9c], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x9d]
xor ebp, ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp edx, ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], edx
stosb byte es:[edi], al
je 0x5abe8e
mov dword [0x5b8b18], 0x42
mov ecx, dword [esi + 0x10]
mov ebx, 1
push 0x5b8b18
mov dword [0x5b8b1c], ecx
mov dword [0x5b8b20], ebp
mov dword [0x5b8b24], ebp
mov dword [0x5b8b2c], 0x8010c
mov word [0x5b8b38], bx
call sub.comdlg32.dll_PrintDlgA
test eax, eax
jne 0x5abcf3
mov edx, dword [esi + 0x10]
push 0x30
push 0x5b8b7c
push 0x5b5114
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
call fcn.005ae030
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x10], edi
jne 0x5abd23
mov eax, dword [esi + 0x10]
push 0x10
push 0x5b8b7c
push 0x5b50fc
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
push ebp
push 0x5adec0
push ebp
push 9
push edi
call dword [sym.imp.GDI32.dll_Escape]
lea ecx, [esp + 0x34]
mov dword [esp + 0x34], 0x14
push ecx
push edi
mov dword [esp + 0x40], 0x5b507c
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebp
call dword [sym.imp.GDI32.dll_StartDocA]
test eax, eax
jge 0x5abd83
mov edx, dword [esi + 0x10]
push 0x10
push ebp
push 0x5b50e0
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
mov dword [0x5b8b5c], ebp
mov eax, dword [esi + 0x10]
push ebp
push 0x5adf50
push eax
push 0x5b50d0
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x5b8aec], eax
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5b8b5c]
mov dword [esp + 0x18], ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
cmp eax, ebp
jne 0x5abe2f
push 1
push ebp
push ebp
lea ecx, [esp + 0x54]
push ebp
push ecx
call ebx
test eax, eax
je 0x5abe0b
mov eax, dword [0x5b8aec]
lea edx, [esp + 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x5abe01
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [0x5b8b5c], ebp
jne 0x5abe2f
jmp 0x5abdc6
mov eax, dword [0x5b8b5c]
cmp eax, ebp
jne 0x5abe2f
cmp dword [0x5b8b74], ebp
je 0x5abe45
mov ecx, dword [esp + 0x18]
inc ecx
cmp ecx, 0x186a0
mov dword [esp + 0x18], ecx
jge 0x5abe45
jmp 0x5abdc2
mov eax, dword [esi + 0x10]
push 0x30
push 0x5b8b7c
push 0x5b5114
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x64]
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x64]
push 0xa
push edi
lea ebp, [edx + eax]
mov dword [esp + 0x30], ebp
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
cdq
idiv ebp
push edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
dec eax
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_StartPage]
mov ebx, dword [esp + 0x10]
jmp 0x5abef5
mov ecx, dword [esi + 0x10]
push 0x104
lea edx, [esp + 0xa0]
call fcn.005b2ad0
test eax, eax
je 0x5ac1dc
lea ecx, [esp + 0x1a0]
push 0x1001
lea edx, [esp + 0xa0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jne 0x5abef1
mov eax, dword [esi + 0x10]
push 0x10
push 0x5b8b7c
push 0x5b50bc
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
mov edi, dword [esp + 0x10]
push 0x800
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, eax
test ebp, ebp
jne 0x5abf3f
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5abf1e
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [esi + 0x10]
push 0x10
push 0x5b8b7c
push 0x5b5098
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
xor eax, eax
cmp word [esi], ax
jbe 0x5abf6d
mov edx, 0xffff7fff
mov ecx, dword [esi + 4]
mov ecx, dword [ecx + eax*4]
mov ebx, dword [ecx + 6]
and ebx, edx
inc eax
mov dword [ecx + 6], ebx
xor ecx, ecx
mov cx, word [esi]
cmp eax, ecx
jl 0x5abf4b
jmp 0x5abf6d
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, esi
call fcn.005ac1f0
mov ebx, eax
test ebx, ebx
je 0x5ac171
mov eax, dword [ebx + 6]
push esi
or ah, 0x80
push 0x100
lea edx, [esp + 0x230]
mov ecx, ebx
mov dword [ebx + 6], eax
call fcn.005abc00
mov ecx, ebp
mov edi, eax
mov edx, dword [esp + 0x14]
mov byte [ebp], 0
call fcn.005abc40
xor eax, eax
mov ax, word [ebx + 0xa]
cmp eax, 6
jle 0x5abfde
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 2
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.005abc40
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x5abfc8
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, esi
call fcn.005ac1f0
mov esi, eax
test esi, esi
je 0x5ac0c6
jmp 0x5abffd
mov edi, dword [esp + 0x20]
mov ax, word [esi + 0xa]
cmp ax, word [ebx + 0xa]
jb 0x5ac0c6
xor ecx, ecx
xor edx, edx
mov cx, word [ebx + 0xc]
mov dx, word [esi + 0xc]
add ecx, 8
cmp edx, ecx
jg 0x5ac0c6
mov eax, dword [esi + 6]
or ecx, 0xffffffff
or ah, 0x80
mov dword [esp + 0x30], ebx
mov dword [esi + 6], eax
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x228]
not ecx
dec ecx
push eax
mov edi, ecx
push 0x100
mov ecx, esi
mov ebx, esi
call fcn.005abc00
mov ecx, ebp
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.005abc40
mov edx, dword [esp + 0x30]
lea eax, [edi*4]
sub eax, edi
xor ecx, ecx
mov cx, word [edx + 0xa]
neg eax
shl eax, 1
sub eax, ecx
xor ecx, ecx
mov cx, word [esi + 0xa]
add eax, ecx
cmp eax, 0xc
jle 0x5ac0a7
lea edx, [eax - 7]
mov eax, 0xaaaaaaab
mul edx
mov esi, edx
shr esi, 2
mov edx, dword [esp + 0x14]
mov ecx, ebp
call fcn.005abc40
dec esi
jne 0x5ac099
mov eax, dword [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x1c]
call fcn.005ac1f0
mov esi, eax
test esi, esi
jne 0x5abff9
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x5ac111
mov edi, 0x5b50b8
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [esp + 0x14]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll__lwrite]
jmp 0x5abf65
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [esp + 0x18]
push eax
mov eax, esi
mov ecx, dword [esp + 0x14]
imul eax, dword [esp + 0x2c]
push ebp
push eax
push 0
push ecx
call dword [sym.imp.GDI32.dll_TextOutA]
inc esi
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], esi
cmp esi, eax
jle 0x5abf65
mov edx, dword [esp + 0x10]
mov dword [esp + 0x18], 1
push edx
call dword [sym.imp.GDI32.dll_EndPage]
test eax, eax
mov dword [esp + 0x24], eax
jl 0x5ac16d
mov eax, dword [0x5b8b5c]
test eax, eax
jne 0x5ac16d
jmp 0x5abf65
mov edi, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5ac1d1
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x5ac1b2
mov eax, dword [0x5b8b5c]
test eax, eax
jne 0x5ac1b2
push edi
call dword [sym.imp.GDI32.dll_EndPage]
push edi
call dword [sym.imp.GDI32.dll_EndDoc]
mov ecx, dword [0x5b8aec]
push ecx
call dword [sym.imp.USER32.dll_DestroyWindow]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret