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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x54c5c5
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x5a5084]
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 0x421259
cmp dword [esi + 0x74], 0
je 0x421138
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 0x421148
cmp dword [esi + 0x78], 0
je 0x421145
mov ebx, eax
sub ebx, dword [esi + 0x7c]
jmp 0x421148
mov ebx, dword [esi + 0x7c]
cmp dword [esi + 0x8c], 0
mov dword [esp + 0x5c], ebx
je 0x421178
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 0x421191
cmp dword [esi + 0x90], 0
je 0x42118b
mov edi, dword [edi]
sub edi, dword [esi + 0x94]
jmp 0x421191
mov edi, dword [esi + 0x94]
cmp dword [esi + 0x80], 0
mov ecx, dword [ebp + 0x10]
je 0x4211c5
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 0x4211e2
cmp dword [esi + 0x84], 0
je 0x4211dc
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 4]
sub edx, dword [esi + 0x88]
jmp 0x4211e2
mov edx, dword [esi + 0x88]
cmp dword [esi + 0x98], 0
mov dword [esp + 0x60], edx
je 0x421225
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 0x421867
cmp dword [esi + 0x9c], 0
je 0x421245
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 0x421867
mov eax, dword [esi + 0xa0]
sub edi, ebx
sub eax, edx
mov dword [ecx], edi
mov dword [ecx + 4], eax
jmp 0x421867
mov eax, dword [esi + 0xe0]
cmp eax, 0xffffffff
je 0x421289
cmp dword [esi + 0xe4], 0xffffffff
je 0x421289
test eax, eax
jl 0x421273
mov dword [edi], eax
mov esi, dword [esi + 0xe4]
test esi, esi
jl 0x421867
mov dword [edi + 4], esi
jmp 0x421867
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.0041fb60
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 0x4212f9
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.00420a00
test eax, eax
mov dword [esp + 0x14], eax
jne 0x42133b
mov ebx, esi
jmp 0x421313
mov esi, dword [ebp + 8]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x42133b
mov edi, ebx
call fcn.0041eff0
mov ebx, eax
test ebx, ebx
je 0x421338
push 0
mov esi, ebx
call fcn.00420a00
test eax, eax
mov dword [esp + 0x14], eax
je 0x421310
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x38]
and eax, 1
cmp al, 1
jne 0x4213bd
mov edi, dword [esp + 0x1c]
cmp word [edi + 0x2e], 0
je 0x421369
push esi
call fcn.00420110
mov bx, word [edi + 0x2e]
push eax
call fcn.00420b00
add esp, 4
mov dword [esp + 0x14], eax
jmp 0x4213bd
mov ebx, esi
jmp 0x421373
mov esi, dword [ebp + 8]
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x4213bd
mov edi, ebx
call fcn.0041eff0
mov ebx, eax
test ebx, ebx
je 0x4213ba
mov ecx, dword [ebx + 0x50]
call fcn.0041fb60
cmp word [eax + 0x2e], 0
je 0x421370
mov ecx, dword [ebx + 0x50]
call fcn.0041fb60
mov ecx, dword [ebp + 8]
push ecx
mov esi, eax
call fcn.00420110
mov bx, word [esi + 0x2e]
push eax
call fcn.00420b00
add esp, 4
mov dword [esp + 0x14], eax
mov esi, dword [ebp + 8]
cmp dword [esp + 0x14], 0
jne 0x4213f3
call fcn.004053b0
call fcn.00405230
test eax, eax
je 0x4213e2
cmp dword [esi + 0xb8], 0
je 0x4213e2
mov eax, 1
jmp 0x4213e4
xor eax, eax
push eax
xor ebx, ebx
call fcn.00420b00
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 0x421435
mov dword [esp + 0x68], 0x7fff
mov edx, dword [esi + 0x2c]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x421792
cmp dword [edi + 0x54], 0
je 0x4216d0
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.00420cc0
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.0041eff0
mov ecx, eax
test ecx, ecx
je 0x421501
lea eax, [esp + 0x34]
call fcn.00405d70
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 + 0xe0]
test eax, eax
mov dword [esp + 0x20], eax
jl 0x421518
fild dword [esp + 0x20]
jmp 0x421525
cmp dword [esi + 0xec], 0xfffffffe
jne 0x421529
fild dword [esp + 0x44]
fstp dword [esp + 0x2c]
mov eax, dword [esi + 0xe4]
test eax, eax
mov dword [esp + 0x20], eax
jl 0x42153d
fild dword [esp + 0x20]
jmp 0x42154a
cmp dword [esi + 0xec], 0xfffffffe
jne 0x42154e
fild dword [esp + 0x48]
fstp dword [esp + 0x30]
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
jnp 0x421571
fstp dword [esp + 0x2c]
jmp 0x421573
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
jnp 0x421596
fstp dword [esp + 0x30]
jmp 0x421598
fstp st(0)
fild dword [esi + 0xec]
fstp dword [esp + 0x20]
fld dword [esp + 0x2c]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x4215bb
fstp dword [esp + 0x2c]
jmp 0x4215bd
fstp st(0)
fild dword [esi + 0xf4]
fstp dword [esp + 0x20]
fld dword [esp + 0x30]
fld dword [esp + 0x20]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x4215e0
fstp dword [esp + 0x30]
jmp 0x4215e2
fstp st(0)
mov ecx, dword [esp + 0x4c]
push 0
push ecx
call sub.gdiplus.dll_GdipSetStringFormatAlign
test eax, eax
je 0x4215f6
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.00421880
fld dword [esp + 0x34]
fld st(0)
fld st(1)
call fcn.00546c10
mov dword [esp + 0x20], eax
fisub dword [esp + 0x20]
fldz
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
fld1
jp 0x421656
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.00546c10
mov dword [esp + 0x20], eax
fisub dword [esp + 0x20]
fcomp st(3)
fnstsw ax
fstp st(2)
test ah, 0x41
jne 0x421682
faddp st(1)
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
jmp 0x421684
fstp st(0)
fild dword [esp + 0x5c]
faddp st(2)
fxch st(1)
call fcn.00546c10
fiadd dword [esp + 0x60]
mov dword [esp + 0x64], eax
call fcn.00546c10
test esi, esi
mov dword [esp + 0x68], eax
je 0x4216b4
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 0x4217a2
mov eax, dword [esi + 0xe0]
test eax, eax
mov edi, dword [esp + 0x5c]
jl 0x4216e3
lea ecx, [eax + edi]
jmp 0x4216f8
cmp dword [esi + 0xec], 0xfffffffe
jne 0x4216f4
mov ecx, dword [esp + 0x44]
add ecx, edi
jmp 0x4216f8
mov ecx, dword [esp + 0x64]
mov edx, dword [esi + 0xe4]
test edx, edx
mov eax, dword [esp + 0x60]
jge 0x42170f
cmp edx, 0xfffffffe
jne 0x421715
mov edx, dword [esp + 0x48]
add edx, eax
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0xe8]
sub ecx, edi
cmp ecx, edx
jg 0x421723
mov ecx, edx
mov edx, dword [esp + 0x68]
add ecx, edi
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0xf0]
sub edx, eax
cmp edx, ecx
jg 0x42173b
mov edx, ecx
mov ecx, dword [esp + 0x64]
add edx, eax
mov dword [esp + 0x68], edx
mov edx, dword [esi + 0xec]
sub ecx, edi
cmp ecx, edx
jle 0x421753
mov ecx, edx
mov edx, dword [esi + 0xf4]
add ecx, edi
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x68]
sub ecx, eax
cmp ecx, edx
jle 0x42176b
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 0x4217a6
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 + 0xe0]
test ecx, ecx
jl 0x4217da
mov dword [eax], ecx
jmp 0x4217e9
cmp dword [esi + 0xec], 0xfffffffe
jne 0x4217e9
mov edx, dword [esp + 0x44]
mov dword [eax], edx
mov ecx, dword [esi + 0xe4]
test ecx, ecx
jge 0x4217fc
cmp ecx, 0xfffffffe
jne 0x4217ff
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
mov ecx, dword [esi + 0xe8]
mov edx, dword [eax]
cmp edx, ecx
jg 0x42180d
mov edx, ecx
mov edi, dword [eax + 4]
mov dword [eax], edx
mov ecx, dword [esi + 0xf0]
cmp edi, ecx
jle 0x42181e
mov ecx, edi
mov dword [eax + 4], ecx
mov edi, dword [esi + 0xec]
cmp edx, edi
jle 0x42182d
mov edx, edi
mov dword [eax], edx
mov esi, dword [esi + 0xf4]
cmp ecx, esi
jle 0x42183b
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 0x421867
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