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

Disassembly:
sub esp, 0x6fc
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push edi
mov edi, dword [esp + 0x710]
push ebx
push ebx
push 0x1004
push dword [edi]
call esi
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x22f0]
mov dword [esp + 0x40], eax
mov al, byte [eax + edi + 0x2224]
mov byte [esp + 0x13], al
movzx eax, al
mov dword [esp + 0x38], eax
cmp eax, 2
jne 0x420564
cmp word [edi + 0xc], bx
jne 0x4205b2
push 0x420cab
push dword [edi + 0x22ec]
push 0x1030
push dword [edi]
call esi
jmp 0x420b08
cmp eax, 6
jb 0x4205b2
mov ecx, dword [edi + 0x2220]
mov dword [esp + 0x28], ebx
test ecx, ecx
js 0x42058a
cmp byte [edi + ebx + 0x2224], 2
je 0x420586
inc ebx
cmp ebx, ecx
jle 0x420577
mov dword [esp + 0x28], ebx
cmp ebx, ecx
jne 0x4205ba
or ebx, 0xffffffff
mov ebp, 0x1388
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
jmp 0x420631
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ebx
and dword [esp + 0x24], 0
mov ebp, 0x1388
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], ebp
cmp eax, 2
je 0x420615
and dword [esp + 0x24], 0
mov ecx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], ebp
cmp eax, 4
je 0x420615
and dword [esp + 0x24], 0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], ebp
test eax, eax
je 0x420615
xor ecx, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ecx
cmp eax, 5
jne 0x4205a8
push ebp
xor eax, eax
push eax
push dword [0x4e6f0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x14], eax
test eax, eax
je 0x420b08
mov ecx, dword [esp + 0x30]
xor eax, eax
shl ecx, 4
push ecx
push eax
push dword [0x4e6f0c]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x20], eax
test eax, eax
jne 0x420668
push dword [esp + 0x14]
xor eax, eax
push eax
push dword [0x4e6f0c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x420b08
mov dword [esp + 0x1c], eax
xor eax, eax
push 0x34
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.0042bcb0
mov ecx, dword [esp + 0x3c]
xor edx, edx
add esp, 0xc
mov dword [esp + 0x44], 4
mov dword [esp + 0x34], edx
mov eax, edx
test ecx, ecx
jle 0x4209dc
cmp byte [esp + 0x13], 6
jb 0x4206f1
cmp ebx, 0xffffffff
je 0x4206f1
lea ecx, [esp + 0xac]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x78]
push ecx
push eax
push 0x1073
push dword [edi]
mov dword [esp + 0xa0], 0x104
call esi
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
cmp eax, 8
ja case.0x4206ea.1
jmp dword [eax*4 + 0x420b18]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x80], ecx
lea ecx, [esp + 0xac]
mov dword [esp + 0x8c], ecx
lea ecx, [esp + 0x78]
push ecx
push eax
push 0x1073
push dword [edi]
mov dword [esp + 0xa0], 0x104
call esi
lea eax, [esp + 0xac]
push eax
call fcn.0042be2c
pop ecx
lea edx, [eax + 1]
lea ecx, [edx + edx]
mov dword [esp + 0x3c], edx
cmp ecx, dword [esp + 0x18]
jb 0x4206d9
mov eax, dword [esp + 0x2c]
add eax, ebp
push eax
push dword [esp + 0x18]
mov dword [esp + 0x34], eax
push 8
push dword [0x4e6f0c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x420a3a
add dword [esp + 0x18], ebp
mov edx, dword [esp + 0x3c]
jmp 0x4206dd
lea esi, [edx + edx]
push esi
lea eax, [esp + 0xb0]
push eax
mov eax, dword [esp + 0x2c]
lea eax, [ecx + eax*2]
push eax
call fcn.0043b210
mov eax, dword [esp + 0x48]
add esp, 0xc
add dword [esp + 0x24], eax
sub dword [esp + 0x18], esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x4206ea.1
cmp edx, 3
jl 0x4207db
mov ecx, dword [esp + 0x1c]
xor eax, eax
push ecx
mov word [esp + edx*2 + 0xa8], ax
lea eax, [esp + 0xb0]
push str._I64d
push eax
call fcn.0041fb7a
add esp, 0xc
jmp case.0x4206ea.1
mov eax, dword [esp + 0x1c]
or dword [eax], 0xffffffff
or dword [eax + 4], 0xffffffff
jmp case.0x4206ea.1
lea eax, [esp + 0xac]
push 0x4a6418
push eax
call fcn.00448b94
pop ecx
pop ecx
test eax, eax
je case.0x4206ea.1
lea eax, [edi + 0xc]
xor ecx, ecx
cmp word [eax], cx
je case.0x4206ea.1
cmp ebx, 0xffffffff
je case.0x4206ea.1
push eax
lea eax, [esp + 0x2b8]
push eax
call fcn.0042be0a
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x2c0]
push eax
call fcn.0042c48f
add esp, 0x10
lea eax, [esp + 0x4bc]
push eax
lea eax, [esp + 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4d0]
mov dword [ecx], eax
mov eax, dword [esp + 0x4d4]
jmp 0x420984
lea eax, [esp + 0xac]
push 0x4a6418
push eax
call fcn.00448b94
pop ecx
pop ecx
test eax, eax
je case.0x4206ea.1
lea eax, [edi + 0xc]
xor ecx, ecx
cmp word [eax], cx
je case.0x4206ea.1
cmp ebx, 0xffffffff
je case.0x4206ea.1
push eax
lea eax, [esp + 0x2b8]
push eax
call fcn.0042be0a
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x2c0]
push eax
call fcn.0042c48f
add esp, 0x10
lea eax, [esp + 0x4bc]
push eax
lea eax, [esp + 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c8]
mov dword [ecx], eax
mov eax, dword [esp + 0x4cc]
jmp 0x420984
lea eax, [esp + 0xac]
push 0x4a6418
push eax
call fcn.00448b94
pop ecx
pop ecx
test eax, eax
je case.0x4206ea.1
lea eax, [edi + 0xc]
xor ecx, ecx
cmp word [eax], cx
je case.0x4206ea.1
cmp ebx, 0xffffffff
je case.0x4206ea.1
push eax
lea eax, [esp + 0x2b8]
push eax
call fcn.0042be0a
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x2c0]
push eax
call fcn.0042c48f
add esp, 0x10
lea eax, [esp + 0x4bc]
push eax
lea eax, [esp + 0x2b8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x4c0]
mov dword [ecx], eax
mov eax, dword [esp + 0x4c4]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
push eax
xor eax, eax
push eax
push 0x104b
push dword [edi]
call esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x64]
mov dword [ecx + 8], eax
lea eax, [esp + 0x44]
push eax
xor eax, eax
mov dword [esp + 0x68], ecx
push eax
push 0x104c
push dword [edi]
call esi
mov eax, dword [esp + 0x34]
add dword [esp + 0x1c], 0x10
inc eax
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x34], eax
cmp eax, ecx
jl 0x42069a
xor edx, edx
mov al, byte [esp + 0x13]
cmp al, 2
je 0x4209f0
cmp al, 4
je 0x4209f0
test al, al
je 0x4209f0
cmp al, 5
jne 0x420a44
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x40], edx
mov dword [esp + 0x34], eax
test ecx, ecx
jle 0x420a48
mov ebx, ecx
mov esi, edx
mov edi, eax
lea eax, [esi*2]
add eax, ebp
push eax
mov dword [edi], eax
call fcn.0042be2c
inc esi
lea edi, [edi + 0x10]
add esi, eax
pop ecx
sub ebx, 1
jne 0x420a0a
mov edi, dword [esp + 0x710]
mov ebx, dword [esp + 0x28]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x420a48
mov eax, dword [esp + 0x20]
push eax
jmp 0x420654
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x38]
cmp eax, 8
ja case.0x420a58.1
movzx eax, byte [eax + 0x420b4c]
jmp dword [eax*4 + 0x420b3c]
push 0x420b55
jmp 0x420a77
push 0x420bc9
jmp 0x420a77
cmp ebx, 0xffffffff
je case.0x420a58.1
push 0x420c36
push dword [edi + 0x22ec]
push 0x1030
push dword [edi]
call esi
xor ecx, ecx
mov esi, ecx
cmp dword [esp + 0x30], ecx
jle 0x420ad5
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, dword [esp + 0x30]
lea eax, [esp + 0x44]
mov dword [esp + 0x48], esi
push eax
push ecx
push 0x104b
push dword [edi]
call ebx
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 8]
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
push eax
xor eax, eax
push eax
push 0x104c
push dword [edi]
call ebx
inc esi
push 0
pop ecx
cmp esi, ebp
jl 0x420a9a
mov ebp, dword [esp + 0x14]
mov al, byte [esp + 0x13]
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp al, 2
je 0x420aef
cmp al, 4
je 0x420aef
test al, al
je 0x420aef
cmp al, 5
jne 0x420af9
push ebp
push ecx
push dword [0x4e6f0c]
call esi
push dword [esp + 0x20]
xor eax, eax
push eax
push dword [0x4e6f0c]
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6fc
ret 4