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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x64], 0x17cc2
mov dword [ebp - 0x14], 0x13028
mov dword [ebp - 8], 0x16137
mov dword [ebp - 0xc], 0x17696
mov dword [ebp - 0x10], 0xe95e
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x40], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x20]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x20], 0
jmp 0x40b9a7
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp eax, dword [edx + 0x18]
jae 0x40bc67
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 0x1c], 1
cmp byte [ebp - 1], 0
jne 0x40b9d4
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x2c], eax
xor ecx, ecx
mov eax, dword [ebp - 0x2c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004176ef
add esp, 4
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0041d37b
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.0040b2c0
add esp, 4
cmp dword [ebp + 0xc], eax
jne 0x40bc34
mov edx, dword [ebp - 0xc]
cmp edx, dword [0x435a6c]
jb 0x40bbef
mov eax, dword [0x435a44]
cmp eax, dword [ebp - 8]
jg 0x40ba77
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x14]
jg 0x40bad8
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x10]
je 0x40bad8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jl 0x40bad8
mov ecx, dword [0x435a30]
mov dword [ebp - 0x28], ecx
jmp 0x40ba8b
mov edx, dword [ebp - 0x28]
sub edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x14]
jge 0x40bad3
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 0xc]
mov eax, 0x13bfa
sar eax, cl
mov dword [0x4359b4], eax
mov eax, dword [ebp - 0xc]
cdq
idiv dword [ebp - 8]
imul eax, dword [ebp - 8]
cdq
idiv dword [ebp - 8]
imul eax, dword [ebp - 0x14]
mov dword [0x435a70], eax
jmp 0x40ba82
jmp 0x40bbef
mov ecx, dword [0x4359b8]
cmp ecx, dword [ebp - 0xc]
jg 0x40bbef
mov edx, dword [ebp - 0x14]
cmp edx, dword [0x435a34]
jb 0x40bbef
mov eax, dword [0x435a70]
cmp eax, dword [ebp - 0x14]
jae 0x40bb54
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.UxTheme.dll_IsThemePartDefined]
cmp dword [0x4359b4], eax
jae 0x40bbbf
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004027f0
add esp, 8
cmp eax, dword [0x435a74]
jne 0x40bbbf
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_CloseMetaFile]
cmp eax, dword [0x435a44]
jne 0x40bbbf
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
add eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401730
add esp, 4
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
sar esi, cl
mov eax, dword [ebp - 8]
cdq
mov ecx, 0x88c8
idiv ecx
mov ecx, eax
shl esi, cl
mov dword [ebp - 0xc], esi
mov eax, 0x472e
cdq
idiv dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, edx
sar eax, cl
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
imul ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x435a6c]
cmp edx, dword [ebp - 0xc]
ja 0x40bb63
jmp 0x40bbea
mov eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x14]
sub eax, dword [ebp - 8]
imul ecx, dword [ebp - 0x14], 0x12552
sub eax, ecx
sub eax, 0xd903
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
cdq
idiv dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], edx
jmp 0x40bae7
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.004176ea
add esp, 4
cmp dword [ebp - 0x34], 0
jne 0x40bc10
mov dword [ebp - 0x54], 0
jmp 0x40bc1d
mov dword [ebp - 0x18], 0x8123
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x58]
movzx edx, word [ecx + eax*2]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x40bc69
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.004176ea
add esp, 4
cmp dword [ebp - 0x38], 0
jne 0x40bc55
mov dword [ebp - 0x60], 0
jmp 0x40bc62
mov dword [ebp - 0x18], 0x8123
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x60], ecx
jmp 0x40b99e
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret