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

Disassembly:
sub esp, 0x290
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x4219f9
mov al, byte [0x4caf4c]
mov ebx, dword [esp + 0x2a4]
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 sub.comdlg32.dll_GetFileTitleA
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x42199c
mov edx, dword [ebp + 0x40]
push eax
push 0x99
lea eax, [esp + 0x184]
push edx
push eax
call fcn.0043e2a0
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_lstrlenA]
lea ecx, [esp + eax + 0x188]
push ecx
call fcn.0043e2a0
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 0x421a00
mov ebx, dword [esp + 0x2a4]
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 0x421a64
mov edi, dword [sym.imp.USER32.dll_IsDialogMessageA]
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 0x421a48
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 0x421a27
mov ebx, dword [esp + 0x2a4]
mov eax, dword [ebp + 0x9c]
test eax, eax
je 0x421a7d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x290
ret 4
mov eax, dword [ebp + 0x98]
test eax, eax
je 0x421b25
push 8
call fcn.004985f0
add esp, 4
test eax, eax
je 0x421aa5
push ebx
mov ecx, eax
call fcn.004204f0
mov edi, eax
jmp 0x421aa7
xor edi, edi
mov esi, dword [ebp + 0x98]
test edi, edi
jne 0x421ab5
xor esi, esi
jmp 0x421adc
mov edx, dword [esi + 8]
mov ecx, edi
push edx
call fcn.00420530
mov ecx, dword [esi + 4]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x421af8
push edi
mov ecx, esi
call fcn.00420510
test eax, eax
jne 0x421adc
mov esi, dword [esi]
test esi, esi
jne 0x421aca
test esi, esi
je 0x421af8
push edi
call fcn.00498600
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x290
ret 4
mov esi, dword [ebp + 0x98]
test edi, edi
je 0x421b25
mov edx, dword [esi + 8]
mov ecx, edi
push edx
call fcn.00420530
mov ecx, dword [esi + 4]
shl eax, 2
mov edx, dword [ecx + eax]
mov dword [edi], edx
mov ecx, dword [esi + 4]
mov dword [ecx + eax], edi
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0
call fcn.0041e310
mov esi, 1
lea ecx, [esp + 0x20]
push esi
push 0
push ebx
mov dword [esp + 0x3c], esi
call fcn.0041e410
mov eax, dword [esp + 0x28]
cmp eax, 2
jl 0x421b6a
mov edx, dword [esp + 0x24]
push 0x4035d0
push 4
push eax
push edx
call fcn.004986d0
add esp, 0x10
push str.descript.ion
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.0043c6e0
add esp, 0xc
lea ecx, [esp + 0x40]
push 0x1388
call fcn.00422040
mov ecx, dword [0x4caa58]
lea edx, [esp + 0x78]
push ecx
push edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], 0x4aa740
mov dword [esp + 0x58], esi
call fcn.0041cb40
mov edi, dword [esp + 0x28]
xor ebx, ebx
test edi, edi
mov dword [esp + 0x18], ebx
jle 0x421d05
cmp ebx, edi
mov dword [esp + 0x14], ebx
jge 0x421bd3
test ebx, ebx
jl 0x421bd3
mov eax, dword [esp + 0x24]
mov esi, dword [eax + ebx*4]
jmp 0x421bd5
xor esi, esi
test byte [esi + 0x3c], 2
je 0x421be8
mov eax, dword [0x4ca938]
test eax, eax
je 0x421ced
mov eax, dword [esi + 8]
test eax, eax
jne 0x421cb2
mov edi, dword [esp + 0x2a4]
lea ecx, [esp + 0x40]
push ecx
push esi
push edi
mov ecx, ebp
call fcn.00421e10
test eax, eax
je 0x421cae
mov edx, dword [esi + 0x5c]
lea eax, [esp + 0x78]
push edx
push edi
push eax
call fcn.0043c6e0
add esp, 0xc
lea ecx, [esp + 0x78]
push ecx
call fcn.0043c610
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x421caa
mov ecx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x1c]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x421c9a
mov eax, dword [ebp + 0x28]
add eax, ecx
lea ecx, [eax*4 + 4]
push ecx
call fcn.004985f0
mov edx, dword [ebp + 0x20]
mov esi, dword [ebp + 0x18]
mov ebx, eax
add esp, 4
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 ecx, dword [ebp + 0x18]
push ecx
call fcn.00498600
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x20]
add esp, 4
add eax, edx
mov dword [ebp + 0x18], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
inc dword [esp + 0x10]
mov edi, dword [esp + 0x28]
mov esi, dword [ebp + 0x34]
test esi, esi
je 0x421ced
mov eax, dword [esp + 0x14]
add eax, 0x64
cdq
idiv edi
mov ecx, eax
mov eax, dword [esp + 0x14]
cdq
idiv edi
cmp ecx, eax
jle 0x421ced
push 0
push ecx
push 0x402
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x30]
push ecx
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 0x421bc6
mov eax, dword [esp + 0x50]
mov dword [esp + 0x40], 0x4aa744
test eax, eax
je 0x421d46
mov eax, dword [esp + 0x48]
xor edi, edi
test eax, eax
jle 0x421d46
mov edx, dword [esp + 0x44]
mov ecx, dword [edx + edi*4]
test ecx, ecx
je 0x421d3d
mov esi, dword [ecx + 4]
test ecx, ecx
je 0x421d37
mov eax, dword [ecx]
push 1
call dword [eax]
test esi, esi
mov ecx, esi
jne 0x421d2a
mov eax, dword [esp + 0x48]
inc edi
cmp edi, eax
jl 0x421d1f
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00498600
mov eax, dword [ebp + 8]
add esp, 4
test eax, eax
je 0x421df5
mov eax, dword [esp + 0x28]
xor edi, edi
test eax, eax
jle 0x421df5
cmp edi, eax
jge 0x421d7d
test edi, edi
jl 0x421d7d
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + edi*4]
jmp 0x421d7f
xor ecx, ecx
test byte [ecx + 0x3c], 2
je 0x421d8f
mov edx, dword [0x4ca938]
test edx, edx
je 0x421dec
mov edx, dword [ecx + 8]
test edx, edx
je 0x421dec
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x421da4
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x421dec
cmp dword [ecx + 4], 2
je 0x421dec
mov edx, dword [esp + 0x2a4]
lea eax, [esp + 0x78]
push 1
push eax
push edx
call fcn.0041dd10
lea eax, [esp + 0x78]
push eax
call fcn.0043c610
add esp, 4
mov esi, eax
mov ecx, ebp
push esi
call fcn.00421930
mov edx, dword [esp + 0x10]
push esi
add edx, eax
mov dword [esp + 0x14], edx
call fcn.00498600
mov eax, dword [esp + 0x2c]
add esp, 4
inc edi
cmp edi, eax
jl 0x421d70
lea ecx, [esp + 0x20]
call fcn.0041e3a0
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x290
ret 4