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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4567ed
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x4706a0]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x4706a0]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
test eax, eax
jne 0x40c261
xor edi, edi
mov dword [esp + 0x20], edi
jmp 0x40c26a
mov eax, dword [eax + 4]
mov dword [esp + 0x20], eax
mov edi, eax
mov ecx, dword [ebx + 0x88]
mov edx, dword [ebx + 0x84]
lea esi, [ebx + 0x78]
push ecx
push edx
push 0
push 0
mov eax, edi
call fcn.00401160
cmp byte [0x4758a0], 0
je 0x40c2ae
mov eax, dword [ebx + 0xb8]
mov ecx, dword [ebx + 0xb4]
lea esi, [ebx + 0xa8]
push eax
push ecx
push 0
push 0
mov eax, edi
call fcn.00401160
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0xffffff
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
sub esp, 0x10
mov eax, esp
mov ecx, 0x1e
mov dword [eax], ecx
lea edx, [ecx - 5]
mov dword [eax + 4], edx
mov ecx, 0x3c
mov esi, 0x230
mov dword [eax + 8], esi
push ecx
mov dword [eax + 0xc], ecx
lea eax, [edx - 0x16]
mov esi, esp
mov ecx, 0x4757e8
mov dword [esp + 0x24], esp
call fcn.00408040
call fcn.00413e60
mov edx, dword [esp + 0x20]
mov edi, eax
push edi
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, 3
lea esi, [esp + 0x1c]
mov ecx, 0x4757e8
call fcn.00408040
mov esi, dword [esp + 0x20]
push 0x24
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], 0x1e
mov dword [esp + 0x40], 0x19
mov dword [esp + 0x44], 0x230
mov dword [esp + 0x48], 0x3c
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
push esi
call dword [sym.imp.USER32.dll_DrawTextW]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c376
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0
push esi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x5c
lea ecx, [esp + 0xa8]
push 0
push ecx
call fcn.0043aae0
add esp, 0xc
lea esi, [esp + 0x1c]
mov byte [esp + 0xbb], 1
mov dword [esp + 0xa4], 0x17
call 0x408830
mov eax, dword [eax]
push eax
lea edx, [esp + 0xc4]
push 0x20
push edx
call fcn.00439cf0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edi, 0xffffffff
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c3f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xa4]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
push 0x5c
lea edx, [esp + 0x48]
push 0
push edx
mov dword [esp + 0x28], eax
call fcn.0043aae0
add esp, 0xc
lea esi, [esp + 0x30]
mov byte [esp + 0x5b], 1
mov dword [esp + 0x44], 0x10
mov byte [esp + 0x58], 1
call 0x408830
mov eax, dword [eax]
push eax
lea eax, [esp + 0x64]
push 0x20
push eax
call fcn.00439cf0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c465
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x8ac]
cmp eax, 0x1f4
jg 0x40c9a1
je 0x40c8d6
cmp eax, 0xca
jg 0x40c768
je 0x40c6bb
sub eax, 0x64
je 0x40c611
sub eax, 0x64
je 0x40c564
sub eax, 1
jne 0x40ce24
movzx edx, byte [ebx + 0x7c6]
push edx
lea eax, [ebx + 0x7fc]
push eax
push 0xc9
push ecx
mov eax, esp
mov dword [esp + 0x20], esp
push ecx
mov dword [esp + 0x28], eax
mov eax, 0xc8
mov esi, esp
mov dword [esp + 0x40], esp
call fcn.00413170
push ecx
mov dword [esp + 0x130], 9
lea edx, [ebx + 0x89c]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
call fcn.004048c0
push ecx
mov byte [esp + 0x134], 0xa
lea eax, [ebx + 0x8a8]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.004048c0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x134], edi
push eax
mov edi, 0x1c
call fcn.00408080
push ecx
mov dword [esp + 0x12c], 0xb
lea eax, [edi - 1]
mov esi, esp
mov ecx, 0x4757e8
mov dword [esp + 0x3c], esp
call fcn.00408040
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ecx
push edx
jmp 0x40ce10
movzx eax, byte [ebx + 0x7c6]
push eax
lea ecx, [ebx + 0x7fc]
push ecx
push 0xc8
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x28], eax
mov eax, 0xc8
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00413170
push ecx
mov dword [esp + 0x130], 6
lea edx, [ebx + 0x89c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004048c0
push ecx
mov byte [esp + 0x134], 7
lea eax, [ebx + 0x8a8]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.004048c0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x134], edi
push eax
mov edi, 0xa
call fcn.00408080
push ecx
mov dword [esp + 0x12c], 8
lea eax, [edi - 4]
mov esi, esp
mov ecx, 0x4757e8
mov dword [esp + 0x2c], esp
call fcn.00408040
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ecx
push edx
jmp 0x40ce10
movzx eax, byte [ebx + 0x7c4]
push eax
lea ecx, [ebx + 0x7dc]
push ecx
push 0x64
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x28], eax
mov eax, 0x64
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00413170
push ecx
mov dword [esp + 0x130], 0
lea edx, [ebx + 0x89c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004048c0
push ecx
mov byte [esp + 0x134], 1
lea eax, [ebx + 0x8a8]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.004048c0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x134], edi
push eax
mov edi, 9
call fcn.00408080
push ecx
mov dword [esp + 0x12c], 2
lea eax, [edi - 4]
mov esi, esp
mov ecx, 0x4757e8
mov dword [esp + 0x2c], esp
call fcn.00408040
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ecx
push edx
jmp 0x40ce10
movzx eax, byte [ebx + 0x7c5]
push eax
lea ecx, [ebx + 0x7ec]
push ecx
push 0xca
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x28], eax
mov eax, 0xca
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00413170
push ecx
mov dword [esp + 0x130], 3
lea edx, [ebx + 0x89c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004048c0
push ecx
mov byte [esp + 0x134], 4
lea eax, [ebx + 0x8a8]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.004048c0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x134], edi
push eax
mov edi, 0x1a
call fcn.00408080
push ecx
mov dword [esp + 0x12c], 5
lea eax, [edi - 1]
mov esi, esp
mov ecx, 0x4757e8
mov dword [esp + 0x2c], esp
call fcn.00408040
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ecx
push edx
jmp 0x40ce10
sub eax, 0x12c
je 0x40c829
sub eax, 0x64
jne 0x40ce24
movzx eax, byte [ebx + 0x7c8]
push eax
lea ecx, [ebx + 0x81c]
push ecx
push 0x190
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x28], eax
mov eax, 0x190
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00413170
push ecx
mov dword [esp + 0x130], 0xf
lea edx, [ebx + 0x89c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004048c0
push ecx
mov byte [esp + 0x134], 0x10
lea eax, [ebx + 0x8a8]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.004048c0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x134], edi
push eax
mov edi, 0xc
call fcn.00408080
push ecx
mov dword [esp + 0x12c], 0x11
lea eax, [edi - 4]
mov esi, esp
mov ecx, 0x4757e8
mov dword [esp + 0x2c], esp
call fcn.00408040
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ecx
push edx
jmp 0x40ce10
movzx eax, byte [ebx + 0x7c7]
push eax
lea ecx, [ebx + 0x80c]
push ecx
push 0x12c
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x28], eax
mov eax, 0x12c
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00413170
push ecx
mov dword [esp + 0x130], 0xc
lea edx, [ebx + 0x89c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004048c0
push ecx
mov byte [esp + 0x134], 0xd
lea eax, [ebx + 0x8a8]
mov ecx, esp
mov dword [esp + 0x2c], esp
push eax
call fcn.004048c0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x134], edi
push eax
mov edi, 0xb
call fcn.00408080
push ecx
mov dword [esp + 0x12c], 0xe
lea eax, [edi - 4]
mov esi, esp
mov ecx, 0x4757e8
mov dword [esp + 0x2c], esp
call fcn.00408040
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ecx
push edx
jmp 0x40ce10
movzx eax, byte [ebx + 0x7c9]
push eax
lea ecx, [ebx + 0x82c]
push ecx
push 0x1f4
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x24], eax
mov eax, 0x1f4
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00413170
mov dword [esp + 0x12c], 0x12
mov eax, dword [ebx + 0x89c]
push ecx
sub eax, 0x10
mov dword [esp + 0x44], esp
mov dword [esp + 0x2c], esp
push eax
call fcn.00404850
mov edx, dword [esp + 0x30]
add eax, 0x10
mov dword [edx], eax
mov byte [esp + 0x134], 0x13
mov eax, dword [ebx + 0x8a8]
mov dword [esp + 0x30], esp
sub eax, 0x10
mov dword [esp + 0x30], esp
push eax
call fcn.00404850
mov ecx, dword [esp + 0x34]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x30]
add esp, 4
mov dword [esp + 0x134], edi
push eax
mov edi, 0x10
call fcn.00408080
push ecx
mov dword [esp + 0x12c], 0x14
lea eax, [edi - 1]
mov esi, esp
mov ecx, 0x4757e8
mov dword [esp + 0x2c], esp
call fcn.00408040
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push edx
push eax
jmp 0x40ce10
cmp eax, 0x384
jg 0x40cc86
je 0x40cbbb
sub eax, 0x258
je 0x40cb0e
sub eax, 0x64
je 0x40ca61
sub eax, 0x64
jne 0x40ce24
movzx ecx, byte [ebx + 0x7cc]
push ecx
lea edx, [ebx + 0x85c]
push edx
push 0x320
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x24], eax
mov eax, 0x320
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00413170
push ecx
mov dword [esp + 0x130], 0x1b
lea eax, [ebx + 0x89c]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
call fcn.004048c0
push ecx
lea edx, [ebx + 0x8a8]
mov ecx, esp
mov dword [esp + 0x30], esp
push edx
mov byte [esp + 0x138], 0x1c
call fcn.004048c0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x134], edi
push eax
mov edi, 0x16
call fcn.00408080
mov dword [esp + 0x128], 0x1d
lea eax, [edi - 3]
jmp 0x40cdf5
movzx edx, byte [ebx + 0x7cb]
push edx
lea eax, [ebx + 0x84c]
push eax
push 0x2bc
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x24], eax
mov eax, 0x2bc
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00413170
push ecx
mov dword [esp + 0x130], 0x18
lea edx, [ebx + 0x89c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004048c0
push ecx
lea eax, [ebx + 0x8a8]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x138], 0x19
call fcn.004048c0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x134], edi
push eax
mov edi, 0x15
call fcn.00408080
push ecx
mov dword [esp + 0x12c], 0x1a
lea eax, [edi - 3]
mov esi, esp
mov ecx, 0x4757e8
mov dword [esp + 0x2c], esp
call fcn.00408040
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ecx
push edx
jmp 0x40ce10
movzx eax, byte [ebx + 0x7ca]
push eax
lea ecx, [ebx + 0x83c]
push ecx
push 0x258
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x24], eax
mov eax, 0x258
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00413170
push ecx
mov dword [esp + 0x130], 0x15
lea edx, [ebx + 0x89c]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
call fcn.004048c0
push ecx
lea eax, [ebx + 0x8a8]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x138], 0x16
call fcn.004048c0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x134], edi
push eax
mov edi, 0x14
call fcn.00408080
push ecx
mov dword [esp + 0x12c], 0x17
lea eax, [edi - 3]
mov esi, esp
mov ecx, 0x4757e8
mov dword [esp + 0x2c], esp
call fcn.00408040
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ecx
push edx
jmp 0x40ce10
movzx eax, byte [ebx + 0x7cd]
push eax
lea ecx, [ebx + 0x86c]
push ecx
push 0x384
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x28], eax
mov eax, 0x384
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00413170
mov dword [esp + 0x12c], 0x1e
mov eax, dword [ebx + 0x89c]
push ecx
sub eax, 0x10
mov dword [esp + 0x44], esp
mov dword [esp + 0x28], esp
push eax
call fcn.00404850
mov edx, dword [esp + 0x2c]
add eax, 0x10
mov dword [edx], eax
mov byte [esp + 0x134], 0x1f
mov eax, dword [ebx + 0x8a8]
mov dword [esp + 0x2c], esp
sub eax, 0x10
mov dword [esp + 0x2c], esp
push eax
call fcn.00404850
mov ecx, dword [esp + 0x30]
add eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x134], edi
push eax
mov edi, 0xa
call fcn.00408080
push ecx
mov dword [esp + 0x12c], 0x20
lea eax, [edi - 4]
mov esi, esp
mov ecx, 0x4757e8
mov dword [esp + 0x2c], esp
call fcn.00408040
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
push edx
push eax
jmp 0x40ce10
sub eax, 0x385
je 0x40cd4a
sub eax, 0x63
jne 0x40ce24
movzx ecx, byte [ebx + 0x7cf]
push ecx
lea edx, [ebx + 0x88c]
push edx
push 0x3e8
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x28], eax
mov eax, 0x3e8
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00413170
mov dword [esp + 0x12c], 0x24
mov eax, dword [ebx + 0x89c]
push ecx
sub eax, 0x10
mov dword [esp + 0x44], esp
mov dword [esp + 0x28], esp
push eax
call fcn.00404850
mov ecx, dword [esp + 0x2c]
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0x134], 0x25
mov eax, dword [ebx + 0x8a8]
mov dword [esp + 0x2c], esp
sub eax, 0x10
mov dword [esp + 0x2c], esp
push eax
call fcn.00404850
mov edx, dword [esp + 0x30]
add eax, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x134], edi
push eax
mov edi, 0x18
call fcn.00408080
mov dword [esp + 0x128], 0x26
lea eax, [edi - 0x11]
jmp 0x40cdf5
movzx edx, byte [ebx + 0x7ce]
push edx
lea eax, [ebx + 0x87c]
push eax
push 0x385
push ecx
mov eax, esp
mov dword [esp + 0x38], esp
push ecx
mov dword [esp + 0x28], eax
mov eax, 0x385
mov esi, esp
mov dword [esp + 0x2c], esp
call fcn.00413170
mov dword [esp + 0x12c], 0x21
mov eax, dword [ebx + 0x89c]
push ecx
sub eax, 0x10
mov dword [esp + 0x44], esp
mov dword [esp + 0x28], esp
push eax
call fcn.00404850
mov ecx, dword [esp + 0x2c]
add eax, 0x10
mov dword [ecx], eax
mov byte [esp + 0x134], 0x22
mov eax, dword [ebx + 0x8a8]
mov dword [esp + 0x2c], esp
sub eax, 0x10
mov dword [esp + 0x2c], esp
push eax
call fcn.00404850
mov edx, dword [esp + 0x30]
add eax, 0x10
mov dword [edx], eax
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [esp + 0x134], edi
push eax
mov edi, 0x15
call fcn.00408080
mov dword [esp + 0x128], 0x23
lea eax, [edi + 8]
push ecx
mov esi, esp
mov ecx, 0x4757e8
mov dword [esp + 0x2c], esp
call fcn.00408040
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
push eax
push ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x134], 0xffffffff
call fcn.00411f00
mov edx, dword [esp + 0x24]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call esi
mov eax, dword [esp + 0x1c]
push eax
call esi
mov eax, 1
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00438558
mov esp, ebp
pop ebp
ret 4