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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4ba4d5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x4e02dc]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
cmp dword [esi + 0x70], 4
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
jne 0x4383f9
cmp dword [esi + 0x74], 0
je 0x4382d8
xor ebx, ebx
cmp dword [esi + 0x78], ebx
cdq
sete bl
sub eax, edx
sar eax, 1
lea ebx, [ebx + ebx - 1]
imul ebx, dword [esi + 0x7c]
add ebx, eax
jmp 0x4382e8
cmp dword [esi + 0x78], 0
je 0x4382e5
mov ebx, eax
sub ebx, dword [esi + 0x7c]
jmp 0x4382e8
mov ebx, dword [esi + 0x7c]
cmp dword [esi + 0x8c], 0
mov dword [esp + 0x5c], ebx
je 0x438318
mov eax, dword [edi]
xor ecx, ecx
cmp dword [esi + 0x90], ecx
cdq
sete cl
sub eax, edx
sar eax, 1
lea ecx, [ecx + ecx - 1]
imul ecx, dword [esi + 0x94]
add ecx, eax
mov edi, ecx
jmp 0x438331
cmp dword [esi + 0x90], 0
je 0x43832b
mov edi, dword [edi]
sub edi, dword [esi + 0x94]
jmp 0x438331
mov edi, dword [esi + 0x94]
cmp dword [esi + 0x80], 0
mov ecx, dword [ebp + 0x10]
je 0x438365
mov eax, dword [ecx + 4]
xor ebx, ebx
cmp dword [esi + 0x84], ebx
cdq
sete bl
sub eax, edx
sar eax, 1
lea ebx, [ebx + ebx - 1]
imul ebx, dword [esi + 0x88]
add ebx, eax
mov edx, ebx
mov ebx, dword [esp + 0x5c]
jmp 0x438382
cmp dword [esi + 0x84], 0
je 0x43837c
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 4]
sub edx, dword [esi + 0x88]
jmp 0x438382
mov edx, dword [esi + 0x88]
cmp dword [esi + 0x98], 0
mov dword [esp + 0x60], edx
je 0x4383c5
mov eax, dword [ecx + 4]
xor ebx, ebx
cmp dword [esi + 0x9c], ebx
cdq
sete bl
sub eax, edx
mov edx, dword [esp + 0x60]
sar eax, 1
lea ebx, [ebx + ebx - 1]
imul ebx, dword [esi + 0xa0]
add eax, ebx
mov ebx, dword [esp + 0x5c]
sub edi, ebx
sub eax, edx
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x438a07
cmp dword [esi + 0x9c], 0
je 0x4383e5
mov eax, dword [ecx + 4]
sub eax, dword [esi + 0xa0]
sub edi, ebx
sub eax, edx
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x438a07
mov eax, dword [esi + 0xa0]
sub edi, ebx
sub eax, edx
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x438a07
mov eax, dword [esi + 0xdc]
cmp eax, 0xffffffff
je 0x438429
cmp dword [esi + 0xe0], 0xffffffff
je 0x438429
test eax, eax
jl 0x438413
mov dword [edi], eax
mov esi, dword [esi + 0xe0]
test esi, esi
jl 0x438a07
mov dword [edi + 4], esi
jmp 0x438a07
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
mov dword [esp + 0x28], ebx
xor eax, eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x18], eax
mov byte [esp + 0x78], 1
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0x24]
mov dword [esp + 0x60], ecx
mov ecx, dword [esi + 0x50]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
call fcn.00435a50
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x18], eax
je 0x438499
mov ecx, dword [edi]
add ecx, dword [esp + 0x5c]
mov edx, dword [edi + 4]
add edx, dword [esp + 0x60]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
push 0
call fcn.004370a0
test eax, eax
mov dword [esp + 0x14], eax
jne 0x4384db
mov ebx, esi
jmp 0x4384b3
mov esi, dword [ebp + 8]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x4384db
mov edi, ebx
call fcn.00436870
mov ebx, eax
test ebx, ebx
je 0x4384d8
push 0
mov esi, ebx
call fcn.004370a0
test eax, eax
mov dword [esp + 0x14], eax
je 0x4384b0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
and eax, 1
cmp al, 1
jne 0x43855d
mov edi, dword [esp + 0x1c]
cmp word [edi + 0x2e], 0
je 0x438509
push esi
call fcn.00436e90
mov bx, word [edi + 0x2e]
push eax
call fcn.00434450
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x43855d
mov ebx, esi
jmp 0x438513
mov esi, dword [ebp + 8]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x43855d
mov edi, ebx
call fcn.00436870
mov ebx, eax
test ebx, ebx
je 0x43855a
mov ecx, dword [ebx + 0x50]
call fcn.00435a50
cmp word [eax + 0x2e], 0
je 0x438510
mov ecx, dword [ebx + 0x50]
call fcn.00435a50
mov ecx, dword [ebp + 8]
push ecx
mov esi, eax
call fcn.00436e90
mov bx, word [esi + 0x2e]
push eax
call fcn.00434450
add esp, 4
mov dword [esp + 0x14], eax
mov esi, dword [ebp + 8]
cmp dword [esp + 0x14], 0
jne 0x438593
call fcn.00407ca0
call fcn.00407fb0
test eax, eax
je 0x438582
cmp dword [esi + 0xb8], 0
je 0x438582
mov eax, 1
jmp 0x438584
xor eax, eax
push eax
xor ebx, ebx
call fcn.00434450
add esp, 4
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov edi, dword [esp + 0x1c]
mov ecx, dword [edi + 0x34]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 0x38]
neg eax
push eax
neg ecx
push ecx
lea ecx, [esp + 0x64]
push ecx
call dword [sym.imp.USER32.dll_InflateRect]
mov ebx, dword [edi + 0x20]
and ebx, 0xfffffff0
test bl, 0x10
je 0x4385d5
mov dword [esp + 0x68], 0x7fff
mov edx, dword [esi + 0x2c]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x438932
cmp dword [edi + 0x54], 0
je 0x438870
lea eax, [esp + 0x4c]
xor edi, edi
push eax
push edi
push edi
mov dword [esp + 0x58], edi
call sub.gdiplus.dll_GdipCreateStringFormat
mov dword [esp + 0x50], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0x18]
push ecx
push edi
call sub.gdiplus.dll_GdipCreateFromHDC
mov edx, dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], edx
mov byte [esp + 0x78], 3
mov ecx, dword [esp + 0x14]
push edi
lea ebx, [esp + 0x18]
call fcn.00434be0
mov byte [esp + 0x78], 4
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x68]
sub ecx, dword [esp + 0x60]
mov edi, dword [esi + 0xc]
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov dword [esp + 0x20], ecx
fstp dword [esp + 0x2c]
fild dword [esp + 0x20]
fstp dword [esp + 0x30]
call fcn.00436870
mov ecx, eax
test ecx, ecx
je 0x4386a1
lea eax, [esp + 0x34]
call fcn.00409550
mov edx, dword [esp + 0x3c]
sub edx, dword [esp + 0x34]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
mov dword [esp + 0x20], eax
fstp dword [esp + 0x2c]
fild dword [esp + 0x20]
fstp dword [esp + 0x30]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xdc]
test eax, eax
mov dword [esp + 0x20], eax
jl 0x4386b8
fild dword [esp + 0x20]
jmp 0x4386c5
cmp dword [esi + 0xe8], 0xfffffffe
jne 0x4386c9
fild dword [esp + 0x44]
fstp dword [esp + 0x2c]
mov eax, dword [esi + 0xe0]
test eax, eax
mov dword [esp + 0x20], eax
jl 0x4386dd
fild dword [esp + 0x20]
jmp 0x4386ea
cmp dword [esi + 0xe8], 0xfffffffe
jne 0x4386ee
fild dword [esp + 0x48]
fstp dword [esp + 0x30]
fild dword [esi + 0xe4]
fstp dword [esp + 0x20]
fld dword [esp + 0x2c]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x438711
fstp dword [esp + 0x2c]
jmp 0x438713
fstp st(0)
fild dword [esi + 0xec]
fstp dword [esp + 0x20]
fld dword [esp + 0x30]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jnp 0x438736
fstp dword [esp + 0x30]
jmp 0x438738
fstp st(0)
fild dword [esi + 0xe8]
fstp dword [esp + 0x20]
fld dword [esp + 0x2c]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x43875b
fstp dword [esp + 0x2c]
jmp 0x43875d
fstp st(0)
fild dword [esi + 0xf0]
fstp dword [esp + 0x20]
fld dword [esp + 0x30]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x438780
fstp dword [esp + 0x30]
jmp 0x438782
fstp st(0)
mov ecx, dword [esp + 0x4c]
push 0
push ecx
call sub.gdiplus.dll_GdipSetStringFormatAlign
test eax, eax
je 0x438796
mov dword [esp + 0x50], eax
mov esi, dword [esi + 0x2c]
fldz
mov edx, dword [esi - 0xc]
fst dword [esp + 0x38]
push edx
fstp dword [esp + 0x38]
push esi
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x5c]
push eax
lea edi, [esp + 0x40]
lea ecx, [esp + 0x58]
lea eax, [esp + 0x38]
mov edx, esi
call fcn.00433420
fld dword [esp + 0x34]
fld st(0)
fld st(1)
call fcn.0049b880
mov dword [esp + 0x20], eax
fisub dword [esp + 0x20]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
fld1
jp 0x4387f6
fadd st(2), st(0)
fxch st(2)
fstp dword [esp + 0x34]
fld dword [esp + 0x34]
fxch st(2)
fld dword [esp + 0x38]
fld st(0)
fld st(1)
call fcn.0049b880
mov dword [esp + 0x20], eax
fisub dword [esp + 0x20]
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 0x41
jne 0x438822
faddp st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
jmp 0x438824
fstp st(0)
fild dword [esp + 0x5c]
faddp st(2)
fxch st(1)
call fcn.0049b880
fiadd dword [esp + 0x60]
mov dword [esp + 0x64], eax
call fcn.0049b880
test esi, esi
mov dword [esp + 0x68], eax
je 0x438854
mov ecx, dword [esi]
push ecx
call sub.gdiplus.dll_GdipDeleteFont
push esi
call sub.gdiplus.dll_GdipFree
mov edx, dword [esp + 0x54]
push edx
call sub.gdiplus.dll_GdipDeleteGraphics
mov eax, dword [esp + 0x4c]
push eax
call sub.gdiplus.dll_GdipDeleteStringFormat
mov esi, dword [ebp + 8]
jmp 0x438942
mov eax, dword [esi + 0xdc]
test eax, eax
mov edi, dword [esp + 0x5c]
jl 0x438883
lea ecx, [eax + edi]
jmp 0x438898
cmp dword [esi + 0xe8], 0xfffffffe
jne 0x438894
mov ecx, dword [esp + 0x44]
add ecx, edi
jmp 0x438898
mov ecx, dword [esp + 0x64]
mov edx, dword [esi + 0xe0]
test edx, edx
mov eax, dword [esp + 0x60]
jge 0x4388af
cmp edx, 0xfffffffe
jne 0x4388b5
mov edx, dword [esp + 0x48]
add edx, eax
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0xe4]
sub ecx, edi
cmp ecx, edx
jg 0x4388c3
mov ecx, edx
mov edx, dword [esp + 0x68]
add ecx, edi
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0xec]
sub edx, eax
cmp edx, ecx
jg 0x4388db
mov edx, ecx
mov ecx, dword [esp + 0x64]
add edx, eax
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0xe8]
sub ecx, edi
cmp ecx, edx
jle 0x4388f3
mov ecx, edx
mov edx, dword [esi + 0xf0]
add ecx, edi
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x68]
sub ecx, eax
cmp ecx, edx
jle 0x43890b
mov ecx, edx
add ecx, eax
mov eax, dword [esi + 0x2c]
or ebx, 0x400
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x6c], ecx
mov edx, dword [eax - 0xc]
lea ecx, [esp + 0x60]
push ecx
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x438946
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ecx
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x34]
mov eax, dword [ebp + 0x10]
add edx, edx
sub edx, dword [esp + 0x5c]
add edx, dword [esp + 0x64]
mov dword [eax], edx
mov ecx, dword [ecx + 0x38]
add ecx, ecx
sub ecx, dword [esp + 0x60]
add ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xdc]
test ecx, ecx
jl 0x43897a
mov dword [eax], ecx
jmp 0x438989
cmp dword [esi + 0xe8], 0xfffffffe
jne 0x438989
mov edx, dword [esp + 0x44]
mov dword [eax], edx
mov ecx, dword [esi + 0xe0]
test ecx, ecx
jge 0x43899c
cmp ecx, 0xfffffffe
jne 0x43899f
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xe4]
mov edx, dword [eax]
cmp edx, ecx
jg 0x4389ad
mov edx, ecx
mov edi, dword [eax + 4]
mov dword [eax], edx
mov ecx, dword [esi + 0xec]
cmp edi, ecx
jle 0x4389be
mov ecx, edi
mov dword [eax + 4], ecx
mov edi, dword [esi + 0xe8]
cmp edx, edi
jle 0x4389cd
mov edx, edi
mov dword [eax], edx
mov esi, dword [esi + 0xf0]
cmp ecx, esi
jle 0x4389db
mov ecx, esi
mov edx, dword [esp + 0x24]
push edx
push ebx
mov dword [eax + 4], ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebx, ebx
je 0x438a07
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc