Function at 0x42cc50
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x318
mov al, byte [0x439c6c]
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 0x42ce8e
mov dword [0x439c08], 0x42
mov ecx, dword [esi + 0x10]
mov ebx, 1
push 0x439c08
mov dword [0x439c0c], ecx
mov dword [0x439c10], ebp
mov dword [0x439c14], ebp
mov dword [0x439c1c], 0x8010c
mov word [0x439c28], bx
call sub.comdlg32.dll_PrintDlgA
test eax, eax
jne 0x42ccf3
mov edx, dword [esi + 0x10]
push 0x30
push 0x439c6c
push 0x436114
push edx
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
call fcn.0042f030
mov edi, eax
cmp edi, ebp
mov dword [esp + 0x10], edi
jne 0x42cd23
mov eax, dword [esi + 0x10]
push 0x10
push 0x439c6c
push 0x4360fc
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x318
ret
push ebp
push 0x42eec0
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], 0x43607c
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 0x42cd83
mov edx, dword [esi + 0x10]
push 0x10
push ebp
push 0x4360e0
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 [0x439c4c], ebp
mov eax, dword [esi + 0x10]
push ebp
push 0x42ef50
push eax
push 0x4360d0
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x439bdc], eax
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x439c4c]
mov dword [esp + 0x18], ebx
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
cmp eax, ebp
jne 0x42ce2f
push 1
push ebp
push ebp
lea ecx, [esp + 0x54]
push ebp
push ecx
call ebx
test eax, eax
je 0x42ce0b
mov eax, dword [0x439bdc]
lea edx, [esp + 0x48]
push edx
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x42ce01
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 [0x439c4c], ebp
jne 0x42ce2f
jmp 0x42cdc6
mov eax, dword [0x439c4c]
cmp eax, ebp
jne 0x42ce2f
cmp dword [0x439c64], ebp
je 0x42ce45
mov ecx, dword [esp + 0x18]
inc ecx
cmp ecx, 0x186a0
mov dword [esp + 0x18], ecx
jge 0x42ce45
jmp 0x42cdc2
mov eax, dword [esi + 0x10]
push 0x30
push 0x439c6c
push 0x436114
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 0x42cef5
mov ecx, dword [esi + 0x10]
push 0x104
lea edx, [esp + 0xa0]
call fcn.00433ae0
test eax, eax
je 0x42d1dc
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 0x42cef1
mov eax, dword [esi + 0x10]
push 0x10
push 0x439c6c
push 0x4360bc
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 0x42cf3f
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x42cf1e
push ebx
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [esi + 0x10]
push 0x10
push 0x439c6c
push 0x436098
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 0x42cf6d
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 0x42cf4b
jmp 0x42cf6d
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, esi
call fcn.0042d1f0
mov ebx, eax
test ebx, ebx
je 0x42d171
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.0042cc00
mov ecx, ebp
mov edi, eax
mov edx, dword [esp + 0x14]
mov byte [ebp], 0
call fcn.0042cc40
xor eax, eax
mov ax, word [ebx + 0xa]
cmp eax, 6
jle 0x42cfde
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.0042cc40
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x42cfc8
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, esi
call fcn.0042d1f0
mov esi, eax
test esi, esi
je 0x42d0c6
jmp 0x42cffd
mov edi, dword [esp + 0x20]
mov ax, word [esi + 0xa]
cmp ax, word [ebx + 0xa]
jb 0x42d0c6
xor ecx, ecx
xor edx, edx
mov cx, word [ebx + 0xc]
mov dx, word [esi + 0xc]
add ecx, 8
cmp edx, ecx
jg 0x42d0c6
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.0042cc00
mov ecx, ebp
mov edx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
call fcn.0042cc40
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 0x42d0a7
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.0042cc40
dec esi
jne 0x42d099
mov eax, dword [esp + 0x20]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [esp + 0x1c]
call fcn.0042d1f0
mov esi, eax
test esi, esi
jne 0x42cff9
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x42d111
mov edi, 0x4360b8
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 0x42cf65
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 0x42cf65
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 0x42d16d
mov eax, dword [0x439c4c]
test eax, eax
jne 0x42d16d
jmp 0x42cf65
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 0x42d1d1
mov eax, dword [esp + 0x24]
test eax, eax
jl 0x42d1b2
mov eax, dword [0x439c4c]
test eax, eax
jne 0x42d1b2
push edi
call dword [sym.imp.GDI32.dll_EndPage]
push edi
call dword [sym.imp.GDI32.dll_EndDoc]
mov ecx, dword [0x439bdc]
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