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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d6a34
push eax
mov dword fs:[0], esp
sub esp, 0x394
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x42179f
mov al, byte [0x4fbe40]
mov ebx, dword [esp + 0x3b4]
mov byte [esp + 0x17c], al
mov ecx, 0x48
xor eax, eax
lea edi, [esp + 0x17d]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x78]
push 0x104
push ecx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.comdlg32.dll_GetFileTitleA]
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x421742
mov edx, dword [ebp + 0x40]
push eax
push 0x99
lea eax, [esp + 0x184]
push edx
push eax
call fcn.00444d00
add esp, 0x10
mov edx, dword [ebp + 0x40]
lea ecx, [esp + 0x78]
push ecx
push 0x9a
lea eax, [esp + 0x184]
push edx
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
lea ecx, [esp + eax + 0x188]
push ecx
call fcn.00444d00
mov eax, dword [ebp + 0x38]
add esp, 0x10
lea edx, [esp + 0x17c]
push edx
push eax
call dword [sym.imp.user32.dll_SetWindowTextA]
mov ecx, dword [ebp + 0x34]
push 0
push 0
push 0x402
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
mov edx, dword [ebp + 0x38]
push edx
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x4217a6
mov ebx, dword [esp + 0x3b4]
mov eax, dword [ebp + 0x30]
mov esi, dword [sym.imp.user32.dll_PeekMessageA]
push 1
push 0
push 0
lea ecx, [esp + 0x68]
push eax
push ecx
call esi
test eax, eax
je 0x42180a
mov edi, dword [sym.imp.user32.dll_IsDialogMessage]
mov ebx, dword [sym.imp.user32.dll_TranslateMessage]
mov eax, dword [ebp + 0x30]
lea edx, [esp + 0x5c]
push edx
push eax
call edi
test eax, eax
jne 0x4217ee
lea ecx, [esp + 0x5c]
push ecx
call ebx
lea edx, [esp + 0x5c]
push edx
call dword [sym.imp.user32.dll_DispatchMessageA]
mov eax, dword [ebp + 0x30]
push 1
push 0
push 0
lea ecx, [esp + 0x68]
push eax
push ecx
call esi
test eax, eax
jne 0x4217cd
mov ebx, dword [esp + 0x3b4]
mov eax, dword [ebp + 0x9c]
xor esi, esi
cmp eax, esi
je 0x42181d
xor eax, eax
jmp 0x421bd0
cmp dword [ebp + 0x98], esi
je 0x4218b6
push 8
call fcn.004c7e90
add esp, 4
mov dword [esp + 0x1c], eax
cmp eax, esi
mov dword [esp + 0x3ac], esi
je 0x42184c
push ebx
mov ecx, eax
call fcn.004204f0
mov esi, eax
mov edi, dword [ebp + 0x98]
mov dword [esp + 0x3ac], 0xffffffff
test esi, esi
je 0x42188c
mov edx, dword [edi + 8]
mov ecx, esi
push edx
call fcn.004224e0
mov ecx, dword [edi + 4]
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x42188c
push esi
mov ecx, edi
call fcn.00420510
test eax, eax
jne 0x421973
mov edi, dword [edi]
test edi, edi
jne 0x421876
mov edi, dword [ebp + 0x98]
test esi, esi
je 0x4218b6
mov edx, dword [edi + 8]
mov ecx, esi
push edx
call fcn.004224e0
mov ecx, dword [edi + 4]
mov ecx, dword [ecx + eax*4]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [edx + eax*4], esi
mov eax, dword [edi + 0xc]
inc eax
mov dword [edi + 0xc], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0
call fcn.0041e520
mov esi, 1
lea ecx, [esp + 0x20]
push esi
push 0
push ebx
mov dword [esp + 0x3b8], esi
mov dword [esp + 0x3c], esi
call fcn.0041e6d0
mov eax, dword [esp + 0x28]
cmp eax, 2
jl 0x421902
push 0x403b30
push 4
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.004c7fc0
add esp, 0x10
push 0x4ee7c8
lea ecx, [esp + 0x7c]
push ebx
push ecx
call fcn.00442e30
add esp, 0xc
lea ecx, [esp + 0x40]
push 0x1388
call fcn.00421e00
mov dword [esp + 0x40], 0x4d8780
mov edx, dword [0x4fb820]
lea eax, [esp + 0x78]
push edx
push eax
lea ecx, [esp + 0x48]
mov byte [esp + 0x3b4], 2
mov dword [esp + 0x58], esi
call fcn.0041cc00
mov edi, dword [esp + 0x28]
xor ebx, ebx
test edi, edi
mov dword [esp + 0x18], ebx
jle 0x421aba
cmp ebx, edi
mov dword [esp + 0x14], ebx
jge 0x42198b
test ebx, ebx
jl 0x42198b
mov ecx, dword [esp + 0x24]
mov esi, dword [ecx + ebx*4]
jmp 0x42198d
test edi, edi
je 0x42188c
push esi
call fcn.004c7e56
add esp, 4
xor eax, eax
jmp 0x421bd0
xor esi, esi
test byte [esi + 0x48], 2
je 0x4219a0
mov eax, dword [0x4fb700]
test eax, eax
je 0x421aa2
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x421a67
mov edi, dword [esp + 0x3b4]
lea edx, [esp + 0x40]
push edx
push esi
push edi
mov ecx, ebp
call fcn.00421bf0
test eax, eax
je 0x421a63
mov esi, dword [esi + 0x68]
lea eax, [esp + 0x78]
push esi
push edi
push eax
call fcn.00442e30
lea ecx, [esp + 0x84]
push ecx
call fcn.00442c90
add esp, 0x10
mov dword [esp + 0x1c], eax
test eax, eax
je 0x421a5f
mov ecx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x1c]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x421a4f
mov eax, dword [ebp + 0x28]
add eax, ecx
lea ecx, [eax*4 + 4]
push ecx
call fcn.004c7e90
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
mov ebx, eax
lea ecx, [edx*4 + 4]
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x18]
push eax
call fcn.004c7e56
mov ecx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x20]
add esp, 8
add eax, ecx
mov dword [ebp + 0x18], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
inc dword [esp + 0x10]
mov edi, dword [esp + 0x28]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x421aa2
mov eax, dword [esp + 0x14]
cdq
idiv edi
mov edx, dword [esp + 0x14]
mov esi, eax
lea eax, [edx + 0x64]
cdq
idiv edi
cmp eax, esi
jle 0x421aa2
push 0
push eax
push 0x402
push ecx
call dword [sym.imp.user32.dll_SendMessageA]
mov eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.user32.dll_UpdateWindow]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
inc ebx
add ecx, 0x64
cmp ebx, edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
jl 0x421966
mov eax, dword [esp + 0x50]
mov byte [esp + 0x3ac], 1
test eax, eax
mov dword [esp + 0x40], 0x4d8784
je 0x421b03
mov eax, dword [esp + 0x48]
xor edi, edi
test eax, eax
jle 0x421b03
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + edi*4]
test ecx, ecx
je 0x421afa
mov esi, dword [ecx + 4]
test ecx, ecx
je 0x421af4
mov edx, dword [ecx]
push 1
call dword [edx]
test esi, esi
mov ecx, esi
jne 0x421ae7
mov eax, dword [esp + 0x48]
inc edi
cmp edi, eax
jl 0x421adc
mov eax, dword [esp + 0x44]
push eax
call fcn.004c7e56
mov eax, dword [ebp + 8]
add esp, 4
test eax, eax
je 0x421bb8
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
jle 0x421bb8
cmp edi, eax
jge 0x421b3a
test edi, edi
jl 0x421b3a
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + edi*4]
jmp 0x421b3c
xor ecx, ecx
test byte [ecx + 0x48], 2
je 0x421b4c
mov edx, dword [0x4fb700]
test edx, edx
je 0x421baf
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x421baf
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x421b61
mov edx, dword [ecx + 0x10]
test edx, edx
jne 0x421baf
cmp dword [ecx + 8], 2
je 0x421baf
mov eax, dword [esp + 0x3b4]
lea edx, [esp + 0x2a0]
push 1
push edx
push eax
call fcn.0041df30
lea ecx, [esp + 0x2a0]
push ecx
call fcn.00442c90
add esp, 4
mov esi, eax
mov ecx, ebp
push esi
call fcn.004216c0
mov edx, dword [esp + 0x10]
push esi
add edx, eax
mov dword [esp + 0x14], edx
call fcn.004c7e56
mov eax, dword [esp + 0x2c]
add esp, 4
inc edi
cmp edi, eax
jl 0x421b2d
lea ecx, [esp + 0x20]
mov dword [esp + 0x3ac], 0xffffffff
call fcn.0041e630
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x3a4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3a0
ret 4