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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x320], 0
je 0x41dc1f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x320]
cmp dword [edx + 8], 0
jl 0x41dc1f
push 1
push 0x1e
push 0
mov eax, dword [ebp + 8]
mov cx, word [eax + 0x384]
push ecx
call sub.gnwie.dll_Wquerywidget
add esp, 8
push eax
call sub.gnwie.dll_Wsetmouseshape
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x320]
movzx ecx, byte [eax + 2]
cmp ecx, 9
jne 0x41d9e2
jmp 0x41dc1f
push 1
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x386]
push eax
call sub.gnwie.dll_WFqueryfontval
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x314], eax
push 0
mov edx, dword [ebp + 8]
mov ax, word [edx + 0x386]
push eax
call sub.gnwie.dll_WFqueryfontval
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x318], eax
push 0x30
push 0
mov edx, dword [ebp + 8]
add edx, 0x354
push edx
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x320]
mov edx, dword [eax + 8]
imul edx, edx, 0x30
lea esi, [ecx + edx + 0x3c]
mov edi, dword [ebp + 8]
add edi, 0x354
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
mov byte [ecx + 4], 1
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x320]
mov byte [eax + 5], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x320]
mov byte [edx + 6], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x320]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov dword [edx + 0x18], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x320]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x84]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
mov dl, byte [ecx + 2]
mov byte [ebp - 4], dl
cmp byte [ebp - 4], 5
je 0x41db61
cmp byte [ebp - 4], 8
je 0x41dafe
jmp 0x41dbc1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x70]
mov dword [ecx + 0x24], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x70]
mov eax, dword [ebp + 8]
add edx, dword [eax + 0x78]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x320]
mov dword [eax + 0x28], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x320]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x6c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x320]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x320]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx*4 + 0x214]
mov dword [eax + 0x30], ecx
jmp 0x41dc1f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x320]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x70]
mov dword [eax + 0x24], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x78]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x320]
mov dword [edx + 0x28], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6c]
mov dword [ecx + 0x2c], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x320]
mov eax, dword [edx + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x320]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x294]
mov dword [edx + 0x30], eax
jmp 0x41dc1f
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x320]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x70]
mov dword [edx + 0x24], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x70]
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 0x78]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x320]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x320]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x6c]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
mov edx, dword [ecx + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x320]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*4 + 0x214]
mov dword [ecx + 0x30], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret