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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x54d300
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
xor ebx, ebx
cmp eax, ebx
je 0x40b378
cmp dword [esi + 0x10], ebx
je 0x40b378
mov eax, dword [esi + 0x20]
push edi
xor edi, edi
cmp eax, ebx
jle 0x40af48
lea esp, [esp]
push edi
mov ecx, esi
call fcn.0040a5f0
cmp eax, ebx
je 0x40b377
mov eax, dword [esi + 0x20]
inc edi
cmp edi, eax
jl 0x40af30
lea ecx, [esp + 0x18]
call fcn.004562e0
mov eax, dword [esi + 4]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x84], ebx
call fcn.004565b0
push 1
push 1
lea ecx, [esp + 0x20]
call fcn.004563b0
push 1
push ebx
lea ecx, [esp + 0x20]
call fcn.004563b0
push 1
push ebx
lea ecx, [esp + 0x20]
call fcn.004563b0
push 1
push ebx
lea ecx, [esp + 0x20]
call fcn.004563b0
push 1
push ebx
lea ecx, [esp + 0x20]
call fcn.004563b0
push 1
push 1
lea ecx, [esp + 0x20]
call fcn.004563b0
mov ecx, dword [esi + 8]
push 1
push ecx
lea ecx, [esp + 0x20]
call fcn.004563b0
mov edx, dword [esi + 0xc]
push 1
push edx
lea ecx, [esp + 0x20]
call fcn.004563b0
push ebx
lea ecx, [esp + 0x1c]
call fcn.004565e0
mov eax, dword [esi]
push eax
lea eax, [esp + 0x10]
push eax
call fcn.0041e730
add esp, 8
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x84], 1
call fcn.004565e0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
xor edi, edi
cmp eax, ebx
jle 0x40b03a
lea ecx, [ecx]
cmp edi, ebx
jl 0x40b238
cmp edi, eax
jg 0x40b238
movsx edx, byte [ecx + edi]
push edx
lea ecx, [esp + 0x1c]
call fcn.004565e0
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 0xc]
inc edi
cmp edi, eax
jl 0x40b010
mov eax, dword [esi + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.004565b0
mov eax, dword [esi + 0x20]
xor edi, edi
cmp eax, ebx
jle 0x40b080
cmp edi, ebx
jl 0x40b242
cmp edi, dword [esi + 0x68]
jge 0x40b242
mov ecx, dword [esi + 0x64]
mov edx, dword [ecx + edi*4]
lea ecx, [ecx + edi*4]
lea eax, [edx + eax*2 + 2]
push eax
lea ecx, [esp + 0x1c]
call fcn.004565b0
mov eax, dword [esi + 0x20]
inc edi
cmp edi, eax
jl 0x40b050
lea edi, [esi + 0x24]
mov ecx, edi
call fcn.00455db0
mov ecx, dword [esi + 0x20]
lea edx, [eax + ecx*2 + 2]
push edx
lea ecx, [esp + 0x1c]
call fcn.004565b0
push edi
lea ecx, [esp + 0x1c]
call fcn.00456600
mov eax, dword [esi + 0x20]
xor edi, edi
cmp eax, ebx
jle 0x40b0ea
mov edi, edi
cmp edi, ebx
jl 0x40b242
cmp edi, dword [esi + 0x54]
jge 0x40b242
mov eax, dword [esi + 0x50]
lea eax, [eax + edi*4]
xor ecx, ecx
mov cx, word [eax]
push ecx
call fcn.0041e1b0
movzx edx, ax
add esp, 4
push edx
lea ecx, [esp + 0x1c]
call fcn.004565b0
mov eax, dword [esi + 0x20]
inc edi
cmp edi, eax
jl 0x40b0b0
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x40]
push eax
push ecx
call dword [sym.imp.gdi32.dll_GetTextMetricsA]
mov edx, dword [esp + 0x44]
push edx
lea ecx, [esp + 0x1c]
call fcn.004565b0
mov eax, dword [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
call fcn.004565b0
mov ecx, dword [esp + 0x50]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004565b0
mov eax, dword [esi + 0x20]
xor edi, edi
cmp eax, ebx
jle 0x40b15b
lea esp, [esp]
cmp edi, ebx
jl 0x40b242
cmp edi, dword [esi + 0x7c]
jge 0x40b242
mov edx, dword [esi + 0x78]
lea eax, [edx + edi*4]
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x1c]
call fcn.004565b0
mov eax, dword [esi + 0x20]
inc edi
cmp edi, eax
jl 0x40b130
mov eax, dword [esi + 0x20]
xor edi, edi
cmp eax, ebx
jle 0x40b1c2
push 5
push 0xc
lea ecx, [esp + 0x20]
call fcn.004563b0
push 0xc
push 0xfffffc01
lea ecx, [esp + 0x20]
call fcn.004563b0
push 0xc
push 0x400
lea ecx, [esp + 0x20]
call fcn.004563b0
push 0xc
push 0xfffffc01
lea ecx, [esp + 0x20]
call fcn.004563b0
push 0xc
push 0x400
lea ecx, [esp + 0x20]
call fcn.004563b0
lea ecx, [esp + 0x18]
call fcn.004564e0
mov eax, dword [esi + 0x20]
inc edi
cmp edi, eax
jl 0x40b164
mov eax, dword [esi + 0x18]
xor edx, edx
cmp eax, ebx
push ebp
mov dword [esp + 0x14], eax
jle 0x40b282
xor ecx, ecx
xor edi, edi
mov dword [esp + 0x18], ecx
xor eax, eax
mov edi, edi
cmp edi, ebx
je 0x40b1e8
cmp ecx, ebx
jne 0x40b250
cmp eax, dword [esi + 0x20]
jge 0x40b250
cmp eax, ebx
jl 0x40b38b
cmp eax, dword [esi + 0x54]
jge 0x40b38b
mov ecx, dword [esi + 0x1c]
movzx ebp, word [ecx + edx*8]
mov ebx, dword [esi + 0x50]
cmp dword [ebx + eax*4], ebp
lea ecx, [ecx + edx*8]
jne 0x40b215
mov edi, 1
cmp eax, dword [esi + 0x54]
jge 0x40b38b
mov ebx, dword [esi + 0x50]
movzx ecx, word [ecx + 2]
cmp dword [ebx + eax*4], ecx
jne 0x40b247
mov ecx, 1
inc eax
mov dword [esp + 0x18], ecx
xor ebx, ebx
jmp 0x40b1e0
push 0x80070057
call fcn.00401120
call fcn.0051c508
mov ecx, dword [esp + 0x18]
inc eax
xor ebx, ebx
jmp 0x40b1e0
cmp edi, ebx
je 0x40b258
cmp ecx, ebx
jne 0x40b272
mov eax, dword [esi + 0x1c]
mov word [eax + edx*8], bx
mov ecx, dword [esi + 0x1c]
mov word [ecx + edx*8 + 2], bx
mov eax, dword [esi + 0x1c]
mov dword [eax + edx*8 + 4], ebx
dec dword [esp + 0x14]
mov eax, dword [esi + 0x18]
inc edx
cmp edx, eax
jl 0x40b1d4
mov eax, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
call fcn.004565b0
mov eax, dword [esi + 0x18]
xor edi, edi
cmp eax, ebx
jle 0x40b2e6
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + edi*8]
mov cx, word [eax]
cmp cx, bx
jne 0x40b2ae
cmp word [eax + 2], bx
jne 0x40b2ae
cmp dword [eax + 4], ebx
je 0x40b2de
movzx edx, cx
push edx
lea ecx, [esp + 0x20]
call fcn.004565b0
mov eax, dword [esi + 0x1c]
movzx ecx, word [eax + edi*8 + 2]
push ecx
lea ecx, [esp + 0x20]
call fcn.004565b0
mov edx, dword [esi + 0x1c]
mov eax, dword [edx + edi*8 + 4]
push eax
lea ecx, [esp + 0x20]
call fcn.004565b0
mov eax, dword [esi + 0x18]
inc edi
cmp edi, eax
jl 0x40b295
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x20]
call fcn.00455db0
mov ecx, dword [esp + 0x90]
push eax
push 0x30
call fcn.00456700
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x84], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b328
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x3c]
cmp eax, ecx
mov dword [esp + 0x40], ebx
je 0x40b358
mov esi, dword [eax]
push eax
call fcn.005253e2
mov ecx, dword [esp + 0x40]
add esp, 4
cmp esi, ecx
mov eax, esi
jne 0x40b343
push ecx
call fcn.005253e2
mov eax, dword [esp + 0x24]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x3c], ebx
je 0x40b376
push eax
call fcn.005253e2
add esp, 4
pop ebp
pop edi
mov ecx, dword [esp + 0x74]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x78
ret 4
call fcn.0051c508
int3