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

Disassembly:
sub esp, 0xa4
push ebp
push esi
mov esi, dword [esp + 0xb4]
mov ebp, ecx
mov dword [esp + 0x40], ebp
mov eax, dword [esi + 0x18]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xb0]
cmp eax, 0x409
jne 0x43941e
mov eax, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x2e0]
mov edx, dword [ebp + 0x364]
mov dword [esp + 0x10], ecx
test eax, eax
mov dword [esp + 0x18], edx
je 0x438a4d
mov ecx, dword [eax + 0x2e0]
mov edx, dword [eax + 0x364]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
push ebx
push edi
mov edi, dword [ebp + 0x4f4]
call dword [sym.imp.USER32.dll_GetFocus]
xor ebx, ebx
cmp edi, eax
mov eax, dword [esi + 8]
mov dword [esp + 0x40], eax
mov al, byte [esi + 0x10]
sete bl
test al, 1
je 0x438cb3
mov eax, dword [esp + 0xc0]
test eax, eax
jne 0x438cb3
lea ecx, [esi + 0x1c]
lea edx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.USER32.dll_CopyRect]
mov al, byte [esi + 0x10]
mov edi, dword [sym.imp.GDI32.dll_SetBkColor]
test al, 0x10
je 0x438ab1
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawFocusRect]
jmp 0x438ae8
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
push eax
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x438ae8
mov edx, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
push 2
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x10]
push ebp
push eax
call edi
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
inc edx
inc ecx
dec eax
dec ebp
push 0xd
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], ebp
call dword [sym.imp.USER32.dll_GetSysColor]
mov eax, dword [esp + 0x20]
test ebx, ebx
jne 0x438b21
mov eax, 0xc8c8c8
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x38]
inc ebx
inc edx
dec ecx
dec ebp
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], ebp
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x438b78
mov eax, dword [esp + 0x10]
push 0
push 0
lea edx, [esp + 0x34]
push 0
push edx
push 2
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov ecx, dword [esp + 0x10]
push ebp
push ecx
call edi
mov ebp, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov al, byte [esi + 0x10]
inc ebp
inc ebx
dec edx
dec ecx
mov dword [esp + 0x2c], ebp
test al, 0x10
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
je 0x438bc5
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov ebx, ebp
inc ebx
inc edx
dec ecx
dec eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
push eax
call edi
mov ebp, eax
cmp ebp, 0xffffffff
je 0x438bfc
mov edx, dword [esp + 0x10]
push 0
push 0
lea ecx, [esp + 0x34]
push 0
push ecx
push 2
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov eax, dword [esp + 0x10]
push ebp
push eax
call edi
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
lea edx, [esp + 0x60]
push ecx
push edx
mov ecx, ebp
mov dword [esp + 0x68], 0
call fcn.00439680
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
add esi, 0x1c
lea ecx, [esp + 0x64]
push esi
push ecx
call dword [sym.imp.USER32.dll_CopyRect]
mov ebp, dword [esp + 0x64]
mov edi, dword [esp + 0x6c]
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x70]
mov eax, 6
mov ecx, 0x100
add ebp, eax
sub edi, eax
mov eax, dword [0x46b21c]
mov dword [esp + 0x64], ebp
inc ebx
dec esi
lea ebp, [eax - 0xc]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], esi
mov dword [esp + 0x1c], eax
mov edx, dword [ebp]
cmp edx, 1
jg 0x438c95
cmp dword [eax - 4], ecx
jge 0x438d32
mov ebx, dword [eax - 8]
cmp ebx, ecx
jle 0x438c9e
mov ecx, ebx
push ecx
lea ecx, [esp + 0x20]
call fcn.00401ce0
test eax, eax
jne 0x438d08
xor edx, edx
jmp 0x438d34
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov ebx, dword [sym.imp.GDI32.dll_SetBkColor]
push ecx
push edx
call ebx
mov edi, eax
cmp edi, 0xffffffff
je 0x438cef
mov ecx, dword [esp + 0x10]
push 0
push 0
lea eax, [esi + 0x1c]
push 0
push eax
push 2
push 0
push 0
push ecx
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov edx, dword [esp + 0x10]
push edi
push edx
call ebx
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.GDI32.dll_SetTextColor]
jmp 0x438c00
mov edi, dword [esp + 0x1c]
lea ecx, [ebx + ebx + 2]
mov edx, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
mov dword [eax - 8], ebx
call fcn.004028a0
mov eax, dword [esp + 0x1c]
mov edx, eax
xor esi, esi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x90]
mov dword [esp + 0x8c], esi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
rep stosd dword es:[edi], eax
mov eax, dword [0x4b6f58]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x8c]
push ecx
mov ecx, dword [eax + 0x1c]
push edx
push 0x1073
push ecx
mov dword [esp + 0xa4], esi
mov dword [esp + 0xb4], 0x100
call ebx
lea ecx, [esp + 0x1c]
call fcn.00401d40
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x1c]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x1c]
mov ecx, 0x100
mov word [edx + eax*2], si
mov eax, dword [0x46b21c]
mov dword [esp + 0x24], eax
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x438dca
cmp dword [eax - 4], ecx
jge 0x438e17
mov esi, dword [eax - 8]
cmp esi, ecx
mov dword [esp + 0x3c], esi
jle 0x438dd7
mov ecx, esi
push ecx
lea ecx, [esp + 0x28]
call fcn.00401ce0
test eax, eax
jne 0x438de9
xor edx, edx
jmp 0x438e19
mov edi, dword [esp + 0x24]
lea ecx, [esi + esi + 2]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x3c]
mov ecx, eax
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x28]
mov dword [ecx - 8], edx
call fcn.004028a0
mov eax, dword [esp + 0x24]
mov edx, eax
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x90]
mov dword [esp + 0x8c], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xa0], edx
mov edx, dword [0x4b6f58]
lea eax, [esp + 0x8c]
push eax
push ecx
mov eax, dword [edx + 0x1c]
push 0x1073
push eax
mov dword [esp + 0xa4], 1
mov dword [esp + 0xb4], 0x100
call ebx
lea ecx, [esp + 0x24]
call fcn.00401d40
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x48]
mov dword [edx - 8], eax
mov ecx, dword [esp + 0x24]
mov word [ecx + eax*2], 0
mov eax, dword [esi + 0x4f0]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x438eb5
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x438ec9
mov edx, dword [0x46b21c]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
call fcn.00402e60
mov esi, dword [esi + 0x28]
test esi, esi
je 0x438f20
mov eax, dword [esi + 0x30]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
je 0x438f20
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x438eef
mov edx, dword [0x46b220]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x438ef6
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x438f06
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x1c]
call fcn.004027f0
jmp 0x438f20
lea ecx, [esp + 0x14]
call fcn.00402690
mov esi, dword [esi + 0x30]
mov dword [esp + 0x14], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, dword [0x46b21c]
mov edx, str.FontName
test edx, edx
mov dword [esp + 0x18], ecx
je 0x438f6d
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x438f6d
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ce0
test eax, eax
je 0x438f6d
mov eax, dword [esp + 0x18]
inc esi
push esi
push str.FontName
push eax
call fcn.00402650
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call fcn.00401f50
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
test ebx, ebx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x3c], ebx
je 0x439122
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call edi
mov ebp, eax
test ebp, ebp
je 0x439122
test esi, esi
jne 0x438fa2
mov dword [esp + 0x20], esi
jmp 0x438fa9
push esi
call edi
mov dword [esp + 0x20], eax
mov esi, dword [esp + 0x14]
xor edi, edi
mov ecx, dword [esi - 8]
lea eax, [esi + ecx*2]
cmp esi, eax
mov dword [esp + 0x28], eax
jae 0x439122
push ebx
push esi
call fcn.00459e1d
add esp, 8
test eax, eax
je 0x438fe1
lea esi, [eax + ebp*2]
push ebx
push esi
inc edi
call fcn.00459e1d
add esp, 8
test eax, eax
jne 0x438fcf
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x28]
cmp esi, eax
jb 0x438fc1
test edi, edi
jle 0x439122
lea ecx, [esp + 0x14]
call fcn.00401d40
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
sub ebx, ebp
imul ebx, edi
mov eax, dword [esi - 8]
mov dword [esp + 0x44], eax
add ebx, eax
mov eax, dword [esi - 4]
mov dword [esp + 0x58], ebx
cmp eax, ebx
jl 0x43902c
cmp dword [esi - 0xc], 1
jle 0x43906a
lea edi, [esi - 0xc]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], edi
call fcn.00401ce0
test eax, eax
je 0x439122
mov ecx, dword [edi + 4]
mov edi, dword [esp + 0x14]
shl ecx, 1
mov edx, ecx
mov eax, dword [esp + 0x28]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004028a0
mov esi, dword [esp + 0x14]
mov ecx, dword [esi - 8]
lea eax, [esi + ecx*2]
cmp esi, eax
mov dword [esp + 0x28], eax
jae 0x43911f
mov edx, dword [esp + 0x3c]
push edx
push esi
call fcn.00459e1d
mov edi, eax
add esp, 8
test edi, edi
je 0x439104
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, edi
sub ecx, eax
mov eax, dword [esp + 0x44]
sar ecx, 1
sub eax, ecx
lea esi, [edx + edx]
sub eax, ebp
lea ecx, [edi + ebp*2]
lea ebx, [eax + eax]
lea eax, [edi + esi]
push ebx
push ecx
push eax
mov dword [esp + 0x60], eax
call fcn.0045a220
mov ecx, esi
mov esi, dword [esp + 0x68]
mov edx, ecx
mov eax, dword [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
sub eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x60]
mov ecx, dword [esp + 0x48]
push ecx
push esi
mov word [esi + ebx], 0
mov ebx, dword [esp + 0x58]
add ebx, eax
mov dword [esp + 0x58], ebx
call fcn.00459e1d
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x439090
mov ebx, dword [esp + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2 + 2]
mov eax, dword [esp + 0x28]
cmp esi, eax
jb 0x43907c
mov esi, dword [esp + 0x14]
mov dword [esi - 8], ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [0x46b220]
pop edi
pop ebx
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x439153
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x439153
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00459de2
add esp, 4
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
test edx, edx
jl 0x43916e
push eax
mov dword [esp + 0x48], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x439182
mov edx, dword [0x46b21c]
push ecx
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], edx
call fcn.00402e60
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 8]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x78], eax
add eax, 4
sub ecx, 0x10
push 1
push edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x88], ecx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.USER32.dll_DrawTextW]
lea eax, [esp + 0x74]
push 0x824
push eax
push 0xffffffffffffffff
push ecx
push edx
call esi
cmp dword [esp + 0xb8], 1
jne 0x4391ff
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0x5c]
push 0xc24
push eax
push 0xffffffffffffffff
push ecx
push edx
call esi
mov ecx, dword [esp + 0x38]
mov eax, dword [0x46b21c]
inc ecx
lea edx, [esp + 0x48]
push ecx
push 0x46bb3c
push edx
mov dword [esp + 0x54], eax
call fcn.004036a0
mov eax, dword [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x6c], 0
fild dword [eax + 0x25c]
fmul qword [0x466d80]
call fcn.0045a190
cmp eax, 0x10
jge 0x439247
mov eax, 0x10
push 0x47f420
push 0
push 4
push 0
push 0
push 1
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ecx, dword [esp + 8]
push eax
push ecx
mov dword [esp + 0x74], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x46b2c4
lea ecx, [esp + 0x40]
call fcn.00402a90
lea edx, [esp + 0x14]
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x74]
push eax
push ecx
call fcn.00402d10
mov edx, dword [0x46b21c]
mov esi, eax
mov eax, 0x46bcfc
mov dword [esp + 0x20], edx
test eax, eax
je 0x4392c0
push 0x46bcfc
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esi]
push 0x46bcfc
push eax
push ecx
mov ecx, dword [ecx - 8]
push ecx
lea ecx, [esp + 0x30]
call fcn.00401eb0
lea edx, [esp + 0x20]
lea ecx, [esp + 0x34]
push edx
call fcn.00429290
lea ecx, [esp + 0x20]
call fcn.00401e80
lea eax, [esp + 0x1c]
push eax
push 0x46bcf8
push 0xa
call fcn.00434070
add esp, 4
lea ecx, [esp + 0x50]
push eax
push 0x47f418
push ecx
push 0x46bcf8
push 0xb
call fcn.00434070
add esp, 4
lea edx, [esp + 0x4c]
push eax
lea eax, [esp + 0x2c]
push edx
push eax
call fcn.00403460
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.00403460
lea edx, [esp + 0x4c]
push eax
push edx
call fcn.00402d10
push eax
lea eax, [esp + 0x54]
push eax
call fcn.00403460
lea ecx, [esp + 0x60]
push eax
push ecx
call fcn.00403460
lea edx, [esp + 0x54]
push eax
push edx
call fcn.00403460
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00402d10
mov edx, dword [eax]
lea ecx, [esp + 0x5c]
push 0x828
push ecx
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x18]
call fcn.0043dbf0
lea ecx, [esp + 0x50]
call fcn.00401e80
lea ecx, [esp + 0x4c]
call fcn.00401e80
lea ecx, [esp + 0x54]
call fcn.00401e80
lea ecx, [esp + 0x40]
call fcn.00401e80
lea ecx, [esp + 0x38]
call fcn.00401e80
lea ecx, [esp + 0x18]
call fcn.00401e80
lea ecx, [esp + 0x10]
call fcn.00401e80
lea ecx, [esp + 0x34]
call fcn.00401e80
lea ecx, [esp + 0x70]
call fcn.00401e80
lea ecx, [esp + 0x3c]
call fcn.00401e80
lea ecx, [esp + 0x6c]
call fcn.0043dc80
lea ecx, [esp + 0x48]
call fcn.00401e80
lea ecx, [esp + 0x44]
call fcn.00401e80
lea ecx, [esp + 0xc]
call fcn.00401e80
lea ecx, [esp + 0x1c]
call fcn.00401e80
lea ecx, [esp + 0x14]
call fcn.00401e80
lea ecx, [esp + 0x58]
call fcn.0043dc80
pop esi
pop ebp
add esp, 0xa4
ret 0xc