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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
cmp byte [esi + 0xef], 0
push ebx
push edi
jne 0x50383e
mov byte [esi + 0xf0], 0
mov eax, dword [0x7364f8]
test eax, eax
jne 0x503857
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x7364f8], eax
push str.TaskDialogIndirect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
setne al
test al, al
mov dword [esp + 0x3c], edi
mov byte [esi + 0x300], al
je 0x503ba8
mov eax, dword [esi + 0xc3]
mov ecx, dword [esi + 0xc7]
mov edx, dword [esi + 0xcb]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xd7]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 8], ebx
jbe 0x503a14
xor ecx, ecx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0069c0de
mov dword [esp + 0xc], eax
mov eax, dword [esi + 0xdb]
add esp, 4
cmp dword [eax], ebx
mov dword [esp + 0xc], ebx
jle 0x503a10
xor edi, edi
mov ecx, dword [esi + 0xdb]
mov edx, dword [edi + ecx]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [eax + ecx*8], edx
mov edx, dword [esi + 0xdb]
mov eax, dword [edi + edx + 4]
mov dword [esp + 0x38], eax
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x503904
sub eax, edx
sar eax, 1
lea ebx, [eax + 1]
mov dword [esp + 0x1c], eax
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x20], ebx
neg ecx
or ecx, eax
push ecx
call fcn.0069c0de
mov edx, dword [esp + 0x3c]
add esp, 4
lea ecx, [ebx + ebx]
push ecx
push edx
push eax
mov dword [esp + 0x24], eax
call fcn.006a4bd0
mov eax, dword [esi + 0xdb]
mov eax, dword [edi + eax + 8]
add esp, 0xc
test eax, eax
je 0x50398e
cmp word [eax], 0
je 0x50398e
call fcn.004af5a0
test al, al
jne 0x50398e
push 0x6c7ce8
lea eax, [esp + 0x1c]
call fcn.00480990
mov ecx, dword [esi + 0xdb]
mov edx, dword [edi + ecx + 8]
push edx
lea eax, [esp + 0x1c]
call fcn.00480990
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x50399b
mov edi, 0x6bc0cc
push 0x410
call fcn.0069c0de
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [ecx + ebx*8 + 4], eax
movzx ecx, word [edi]
add esp, 4
xor edx, edx
add edi, 2
test cx, cx
je 0x5039db
cmp edx, 0x207
jae 0x5039db
mov word [eax + edx*2], cx
movzx ecx, word [edi]
add edx, 1
add edi, 2
test cx, cx
jne 0x5039c1
mov word [eax + edx*2], 0
mov edx, dword [esp + 0x18]
add ebx, 1
push edx
mov dword [esp + 0x10], ebx
call fcn.0069c8fa
mov eax, dword [esi + 0xdb]
lea edi, [ebx + ebx*2]
add edi, edi
add edi, edi
add esp, 4
cmp dword [edi + eax], 0
jg 0x5038df
mov edi, dword [esp + 0x3c]
mov ebx, dword [esp + 8]
push 0x5c
lea ecx, [esp + 0x48]
push 0
push ecx
call fcn.006a1300
add esp, 0xc
cmp byte [esi + 0xef], 0
mov dword [esp + 0x40], 0x60
mov dword [esp + 0x4c], 0x10
je 0x503a46
mov dword [esp + 0x4c], 0x18
cmp byte [esi + 0xf2], 0
je 0x503a57
or dword [esp + 0x4c], 0x100
cmp byte [esi + 0x2ff], 0
je 0x503a6a
mov dword [esp + 0x50], 0x20
jmp 0x503a7b
mov dl, byte [esi + 0xf0]
neg dl
sbb edx, edx
and edx, 8
mov dword [esp + 0x50], edx
mov ecx, dword [0x734df4]
mov eax, dword [esi + 0xbf]
mov edx, dword [esi + 0xd7]
mov dword [esp + 0x48], ecx
xor ecx, ecx
cmp dword [esi + 0x301], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], edx
jle 0x503ab2
movzx eax, word [esi + 0x301]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x34]
fld dword [esi + 0xcf]
mov edx, dword [esp + 0x24]
fmul dword [0x723750]
fnstcw word [esp + 0xc]
mov dword [esp + 0x5c], eax
movzx eax, word [esp + 0xc]
or eax, 0xc00
cmp byte [esi + 0xf1], cl
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0x60], edx
mov edx, dword [esi + 0xe3]
fldcw word [esp + 0x10]
mov dword [esp + 0x6c], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x94], 0x5037d0
mov dword [esp + 0x98], esi
fistp qword [esp + 0x28]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x9c], eax
fldcw word [esp + 0xc]
je 0x503b36
or dword [esp + 0x4c], 0x40
lea eax, [esi + 0xf3]
mov dword [esp + 0x7c], eax
lea edx, [esp + 0x28]
push edx
push ecx
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], ecx
push eax
lea ecx, [esp + 0x4c]
push ecx
call edi
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x503b8b
xor edi, edi
cmp dword [esi + 0xd7], edi
jbe 0x503b82
add ebx, 4
mov edx, dword [ebx]
push edx
call fcn.0069c8fa
add edi, 1
add esp, 4
add ebx, 8
cmp edi, dword [esi + 0xd7]
jb 0x503b65
mov ebx, dword [esp + 8]
push ebx
call fcn.0069c8fa
add esp, 4
cmp dword [esp + 0x10], 0
jne 0x503b9f
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x503b9f
test eax, eax
jge 0x503ba2
or eax, 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
fldz
fcom dword [esi + 0xcf]
fnstsw ax
test ah, 0x44
jnp 0x503bf7
fcomp dword [esi + 0xd3]
fnstsw ax
test ah, 0x44
jnp 0x503bf9
fld dword [esi + 0xd3]
mov eax, dword [esi + 0xbf]
sub esp, 8
fstp dword [esp + 4]
fld dword [esi + 0xcf]
fstp dword [esp]
push eax
push esi
call fcn.004f6170
test al, al
je 0x503b9f
mov eax, dword [esi + 0xdf]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
fstp st(0)
mov ecx, dword [esi + 0xbf]
push ecx
push esi
call fcn.004f6110
test al, al
je 0x503b9f
mov eax, dword [esi + 0xdf]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret