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

Disassembly:
sub esp, 8
mov eax, dword [0x448584]
push esi
push edi
push ebx
push str.VieCalcLDialogsize___p__n
push 3
push eax
call fcn.004380f8
lea ecx, [esp + 0x18]
push ecx
push 2
call sub.gnwie.dll_Wquerydlgsize
mov eax, dword [esp + 0x20]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [0x448104]
lea edx, [eax + 0x2c]
movzx eax, word [eax + 0x12]
push edx
push eax
call sub.gnwie.dll_BTNGqsize
mov ecx, dword [0x448958]
mov edx, dword [ecx + 8]
mov esi, dword [0x448104]
push edx
add esi, 0x3c
call fcn.0040ad90
mov ecx, dword [0x448958]
mov edx, dword [ecx + 8]
movzx eax, ax
push eax
push edx
push 0
call sub.gnwie.dll_WFcalctextwidth
add eax, dword [esp + 0x38]
mov ecx, dword [0x44815c]
mov dword [esi], eax
mov eax, dword [0x448104]
mov edx, dword [esp + 0x3c]
mov esi, dword [esi]
add edx, ecx
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], esi
mov edx, dword [esp + 0x3c]
lea ecx, [ecx + ecx*2]
lea ecx, [edx + ecx*2]
mov edx, dword [eax + 0x40]
add edx, ecx
mov dword [eax + 0x48], ecx
mov dword [eax + 0x38], edx
movzx edx, word [eax + 0x16]
lea ecx, [eax + 0x4c]
push ecx
push edx
mov dword [eax + 0x34], esi
call sub.gnwie.dll_SCRNquerysize
mov eax, dword [0x448104]
movzx edx, word [eax + 0x18]
lea ecx, [eax + 0x54]
push ecx
push edx
call sub.gnwie.dll_BTNGqsize
mov eax, dword [0x448950]
mov ecx, dword [eax + 4]
mov edx, dword [0x448104]
add esp, 0x40
push ecx
add edx, 0x5c
push 1
push edx
call sub.gnwie.dll_BTNcalcsize
mov eax, dword [0x44895c]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [0x448104]
add edx, 0x64
push 0
push edx
call sub.gnwie.dll_BTNcalcsize
mov eax, dword [0x448104]
movzx edx, word [eax + 0x1e]
lea ecx, [eax + 0x6c]
push ecx
push edx
call sub.gnwie.dll_BTNGqsize
mov eax, dword [0x448104]
movzx edx, word [eax + 0x20]
lea ecx, [eax + 0x74]
push ecx
push edx
call sub.gnwie.dll_BTNGqsize
mov ecx, dword [0x448104]
mov eax, dword [ecx + 0x2c]
mov edx, dword [ecx + 0x34]
add esp, 0x28
cmp eax, edx
jg 0x433458
mov eax, edx
mov edx, dword [ecx + 0x4c]
cmp eax, edx
mov dword [ecx + 0x7c], eax
jg 0x433464
mov eax, edx
mov edx, dword [ecx + 0x54]
cmp eax, edx
mov dword [ecx + 0x7c], eax
jg 0x433470
mov eax, edx
mov esi, dword [ecx + 0x5c]
cmp eax, esi
mov dword [ecx + 0x7c], eax
jle 0x43347c
mov esi, eax
mov eax, dword [0x448158]
lea edi, [eax + eax*2]
mov eax, dword [ecx + 0x6c]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
mov dword [ecx + 0x7c], esi
jg 0x433497
mov esi, eax
mov eax, dword [ecx + 0x74]
sub eax, edi
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
mov dword [ecx + 0x7c], esi
jg 0x4334aa
mov esi, eax
mov eax, dword [ecx + 0x50]
add eax, dword [ecx + 0x38]
mov edx, dword [0x44815c]
add eax, dword [ecx + 0x30]
push ebp
mov ebp, dword [ecx + 0x68]
add ebp, dword [ecx + 0x60]
lea eax, [eax + edx*2]
add ebp, dword [ecx + 0x58]
mov dword [ecx + 0x7c], esi
lea edx, [ebp + edx*2]
cmp eax, edx
mov dword [ecx + 0x80], eax
pop ebp
jg 0x4334da
mov eax, edx
mov dword [ecx + 0x80], eax
lea edx, [edi + esi*2]
mov dword [ebx], edx
mov eax, dword [ecx + 0x78]
add eax, dword [ecx + 0x70]
pop edi
add eax, dword [ecx + 0x80]
pop esi
mov dword [ebx + 4], eax
add esp, 8
ret