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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5a7be1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov eax, dword [edi + 8]
test eax, eax
jne 0x50cd09
mov al, 1
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov al, byte [edi]
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.004318f0
mov ecx, dword [0x5b21c4]
push ecx
push 0
push edi
lea ecx, [esp + 0x40]
call fcn.004311c0
mov eax, dword [esp + 0x38]
mov dword [esp + 0xe8], 0
test eax, eax
je 0x50cd6c
mov cl, byte [eax - 1]
test cl, cl
je 0x50cd60
cmp cl, 0xff
je 0x50cd60
mov edx, dword [esp + 0x3c]
push 0
push edx
lea ecx, [esp + 0x3c]
call fcn.004316e0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x50cd6c
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x38]
mov edi, eax
test eax, eax
je 0x50cda2
mov cl, byte [eax - 1]
test cl, cl
je 0x50cd92
cmp cl, 0xff
je 0x50cd92
mov eax, dword [esp + 0x3c]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.004316e0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x50cda2
mov byte [eax - 1], 0xff
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x50cda6
xor ecx, ecx
jmp 0x50cdad
mov ecx, dword [esp + 0x3c]
lea ecx, [eax + ecx*2]
cmp edi, ecx
je 0x50cdc5
cmp word [edi], 9
jne 0x50cdc0
mov word [edi], 0x20
mov eax, dword [esp + 0x38]
add edi, 2
jmp 0x50cd6e
mov edi, dword [ebp + 0xc]
mov edx, dword [esi + 0x28]
push edi
push edx
call fcn.0050c000
add esp, 8
mov dword [esp + 0xa4], eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call fcn.0050b9b0
mov dl, byte [esp + 0x33]
push 0
lea ecx, [esp + 0x88]
xor bl, bl
mov byte [esp + 0x88], dl
call fcn.004318f0
mov al, byte [esp + 0x33]
push 0
lea ecx, [esp + 0x98]
mov byte [esp + 0xec], 1
mov byte [esp + 0x98], al
call fcn.004318f0
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0xa8]
push ecx
mov byte [esp + 0xec], 2
mov edx, dword [eax + 8]
push edx
call dword [sym.imp.GDI32.dll_GetTextMetricsA]
mov al, byte [esi + 0x69]
test al, al
je 0x50cf0b
fild dword [esp + 0x1c]
fld st(0)
fadd qword [esi + 0x58]
fcomp qword [esi + 0x80]
fnstsw ax
test ah, 0x41
je 0x50d6b9
fld qword [esi + 0x58]
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x64]
fst qword [esp + 0x64]
fxch st(1)
fadd st(1)
mov dword [esp + 0x6c], eax
mov edx, dword [esi]
lea eax, [esp + 0xa8]
mov dword [esp + 0x70], ecx
push eax
mov eax, dword [ebp + 0x10]
fstp qword [esp + 0x78]
lea ecx, [esp + 0x68]
fstp st(0)
fild dword [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x40]
push edi
fadd qword [esp + 0x7c]
push ecx
mov ecx, esi
fstp qword [esp + 0x90]
call dword [edx + 8]
mov ebx, dword [esi + 0xb0]
lea edi, [esi + 0xac]
mov dword [esp + 0xc], eax
mov ecx, edi
mov edx, dword [ebx + 4]
push edx
push ebx
call fcn.004c2390
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
lea edx, [esp + 0xc]
mov dword [ecx], eax
add eax, 8
push edx
push eax
call fcn.00511110
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x80]
add esp, 8
inc eax
mov dword [edi + 8], eax
mov eax, dword [esp + 0x74]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
mov bl, 1
jmp 0x50d6bb
mov al, byte [esi + 0x68]
test al, al
je 0x50cfc8
fild dword [esp + 0x1c]
fld st(0)
fadd qword [esi + 0x38]
fld qword [esi + 0x18]
fsub qword [esi + 8]
fcompp
fnstsw ax
test ah, 1
jne 0x50d6b9
fld qword [esi + 0x48]
mov eax, dword [esi + 0x54]
mov edx, dword [esi + 0x50]
fst qword [esp + 0x44]
fxch st(1)
fadd st(1)
mov dword [esp + 0x50], eax
lea eax, [esp + 0xa8]
push eax
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x48]
mov dword [esp + 0x50], edx
fstp qword [esp + 0x58]
mov edx, dword [esi]
push ecx
fstp st(0)
fild dword [esp + 0x28]
push eax
lea ecx, [esp + 0x40]
push edi
push ecx
fstp qword [esp + 0x70]
mov ecx, esi
call dword [edx + 8]
mov ebx, dword [esi + 0xa4]
lea edi, [esi + 0xa0]
mov dword [esp + 0xc], eax
mov ecx, edi
mov edx, dword [ebx + 4]
push edx
push ebx
call fcn.004c2390
mov dword [ebx + 4], eax
mov ecx, dword [eax + 4]
lea edx, [esp + 0xc]
mov dword [ecx], eax
add eax, 8
push edx
push eax
call fcn.00511110
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x60]
add esp, 8
inc eax
mov dword [edi + 8], eax
mov eax, dword [esp + 0x54]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ecx
mov bl, 1
jmp 0x50d6bb
fild dword [esp + 0x20]
mov edx, dword [esi + 0x44]
push 0x3cb00000
mov eax, dword [esi + 0x40]
push 0
sub esp, 8
mov ecx, esi
fstp qword [esp]
push 0
push 0
push edx
push eax
push 0x3cc00000
push 0
call fcn.0050ddc0
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
push ecx
mov ecx, dword [esi + 0x38]
push edx
push eax
push ecx
mov ecx, esi
call fcn.0050c940
fstp qword [esp + 0xc]
fild dword [esp + 0x20]
mov edx, dword [esi + 0x3c]
mov eax, dword [esi + 0x38]
sub esp, 8
mov ecx, esi
fadd qword [esi + 0x40]
fstp qword [esp]
push edx
push eax
call fcn.0050c940
fst qword [esp + 0x14]
fld qword [esp + 0xc]
fcomp qword [0x5b3130]
fnstsw ax
test ah, 1
je 0x50d08e
fcom qword [0x5b3130]
fnstsw ax
test ah, 1
je 0x50d088
fstp st(0)
fild dword [esp + 0x20]
fadd qword [esi + 0x40]
fcomp qword [esi + 0x20]
fnstsw ax
test ah, 0x41
jne 0x50d066
mov bl, 1
jmp 0x50d6bb
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
jmp 0x50d0ab
fstp qword [esp + 0xc]
jmp 0x50d0ab
fcomp qword [0x5b3130]
fnstsw ax
test ah, 1
je 0x50d0ab
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov eax, dword [esi]
mov ecx, esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0x3ff00000
call dword [eax + 4]
test al, al
je 0x50d1a6
fld qword [esi + 0x20]
fadd qword [esi + 0x10]
fmul qword [0x5af430]
fld qword [esi + 8]
fadd qword [esi + 0x18]
fmul qword [0x5af430]
fld qword [esi + 0xb8]
fsub st(1)
fstp qword [esp + 0x64]
fstp st(0)
fsubr qword [esi + 0xc0]
fld qword [esi + 0x20]
fsub qword [esi + 0x10]
fld st(1)
fmulp st(2)
fld qword [esp + 0x64]
fmul qword [esp + 0x64]
faddp st(2)
fxch st(1)
fsqrt
fxch st(1)
fmul qword [0x5af430]
fsubp st(1)
fld qword [esi + 0x18]
fsub qword [esi + 8]
fld st(1)
fmul qword [0x5b8fd0]
fcomp st(1)
fnstsw ax
test ah, 0x41
fstp st(0)
jne 0x50d1a4
mov al, byte [esi + 0xe8]
test al, al
jne 0x50d161
fld qword [esi + 0x20]
fsub qword [esi + 0x40]
fadd st(1)
fdivr st(1)
fstp qword [esp + 0x24]
fld qword [esp + 0xc]
fdiv qword [esp + 0x24]
fstp qword [esp + 0xc]
fild dword [esp + 0x20]
fadd qword [esi + 0x40]
fsubr qword [esi + 0x20]
jmp 0x50d185
fld qword [esi + 0x40]
fsub qword [esi + 0x10]
fadd st(1)
fdivr st(1)
fstp qword [esp + 0x24]
fld qword [esp + 0xc]
fdiv qword [esp + 0x24]
fstp qword [esp + 0xc]
fild dword [esp + 0x20]
fadd qword [esi + 0x40]
fsub qword [esi + 0x10]
fadd st(1)
fdivp st(1)
fld qword [esp + 0x14]
fdiv st(1)
fstp qword [esp + 0x14]
fcom qword [esp + 0x24]
fnstsw ax
test ah, 0x41
jne 0x50d1a4
fstp qword [esp + 0x24]
jmp 0x50d1a6
fstp st(0)
fild dword [esp + 0x1c]
fstp qword [esp + 0x64]
fld qword [esp + 0xc]
fadd qword [0x5b95f8]
fcomp qword [esp + 0x64]
fnstsw ax
test ah, 1
jne 0x50d1d8
fld qword [esp + 0x14]
fadd qword [0x5b95f8]
fcomp qword [esp + 0x64]
fnstsw ax
test ah, 1
je 0x50d1ee
cmp dword [esp + 0x3c], 1
jne 0x50d2e1
mov al, byte [ebp + 0x14]
test al, al
je 0x50d2e1
fld qword [esi + 0x38]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
fst qword [esp + 0x44]
fld qword [esp + 0x64]
fmul qword [esp + 0x24]
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x50], edx
fadd st(1)
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x48]
push edx
push ecx
fstp qword [esp + 0x60]
lea edx, [esp + 0x40]
push edi
fstp st(0)
fild dword [esp + 0x30]
push edx
mov ecx, esi
fadd qword [esp + 0x60]
fstp qword [esp + 0x70]
call dword [eax + 8]
push 0
push 0x601d20
push 0x603db8
push 0
push eax
mov dword [esp + 0x20], eax
call fcn.0053ce5e
add esp, 0x14
test eax, eax
je 0x50d27e
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0xf0], ecx
lea ecx, [esi + 0xb8]
push ecx
mov ecx, eax
mov dword [esi + 0xf4], edx
call fcn.005108d0
mov ebx, dword [esi + 0xa4]
push 0xc
mov edi, dword [ebx + 4]
call fcn.00570bbc
add esp, 4
mov ecx, ebx
test ebx, ebx
jne 0x50d299
mov ecx, eax
mov dword [eax], ecx
mov ecx, edi
test edi, edi
jne 0x50d2a3
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [ebx + 4], eax
mov edx, dword [eax + 4]
lea ecx, [esp + 0xc]
push ecx
mov dword [edx], eax
add eax, 8
push eax
call fcn.00511110
mov eax, dword [esi + 0xa8]
mov edx, dword [esp + 0x5c]
add esp, 8
inc eax
mov dword [esi + 0xa8], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov bl, 1
jmp 0x50d6bb
fld qword [esp + 0xc]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 1
je 0x50d302
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
jmp 0x50d312
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov al, byte [esi + 0x74]
test al, al
jne 0x50d568
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push eax
lea edx, [esp + 0x9c]
push ecx
lea eax, [esp + 0x90]
push edx
lea ecx, [esp + 0x44]
push eax
push ecx
mov ecx, esi
call fcn.0050e260
test al, al
je 0x50d3d3
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push edx
push eax
lea ecx, [esp + 0x8c]
push edi
push ecx
mov ecx, esi
call fcn.0050ccc0
test al, al
je 0x50d6bb
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x50d3b6
mov edx, dword [esp + 0x9c]
add edx, eax
mov eax, dword [esp + 0x3c]
cmp edx, eax
jae 0x50d3b6
mov eax, dword [esi + 0x28]
test eax, eax
je 0x50d395
mov eax, dword [eax + 4]
lea ecx, [esp + 0x64]
push ecx
push 1
push 0x603db4
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
fild dword [esp + 0x64]
fmul qword [esp + 0x24]
fadd qword [esi + 0x38]
fstp qword [esi + 0x38]
mov edx, dword [ebp + 0x10]
push 0
push edx
lea eax, [esp + 0x9c]
push edi
push eax
mov ecx, esi
call fcn.0050ccc0
mov bl, al
jmp 0x50d6bb
lea ecx, [esp + 0x34]
push ecx
mov ecx, esi
call fcn.0050e050
mov dword [esp + 0xc], eax
fild dword [esp + 0xc]
fcomp qword [esp + 0x14]
fnstsw ax
test ah, 0x41
jne 0x50d69e
mov al, byte [ebp + 0x14]
test al, al
jne 0x50d69e
push 1
lea edx, [esp + 0x68]
push 0
push edx
lea ecx, [esp + 0x40]
call fcn.00430ff0
push eax
mov ecx, esi
mov byte [esp + 0xec], 3
call fcn.0050e050
mov dword [esp + 0xc], eax
sub esp, 8
fild dword [esp + 0x14]
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x3c]
fstp qword [esp]
fild dword [esp + 0x28]
sub esp, 8
fstp qword [esp]
push 0
push 0
push eax
push ecx
push edx
mov ecx, esi
call fcn.0050e050
mov dword [esp + 0x2c], eax
sub esp, 8
fild dword [esp + 0x34]
mov ecx, esi
fmul qword [esp + 0x4c]
fstp qword [esp]
call fcn.0050ddc0
mov ecx, dword [esp + 0x68]
mov bl, al
test ecx, ecx
mov byte [esp + 0xe8], 2
je 0x50d49c
mov al, byte [ecx - 1]
test al, al
je 0x50d490
cmp al, 0xff
je 0x50d490
dec al
mov byte [ecx - 1], al
jmp 0x50d49c
add ecx, 0xfffffffe
push ecx
call fcn.00570be5
add esp, 4
test bl, bl
push 1
jne 0x50d52f
lea edx, [esp + 0x68]
push 0
push edx
lea ecx, [esp + 0x40]
call fcn.00430ff0
fild dword [esp + 0x20]
mov ecx, dword [esi + 0x44]
push 0
mov edx, dword [esi + 0x40]
push 0
sub esp, 8
mov byte [esp + 0xf8], 4
fstp qword [esp]
push 0
push 0
push ecx
push edx
push eax
mov ecx, esi
call fcn.0050e050
mov dword [esp + 0x2c], eax
sub esp, 8
fild dword [esp + 0x34]
mov ecx, esi
fmul qword [esp + 0x4c]
fstp qword [esp]
call fcn.0050ddc0
mov ecx, dword [esp + 0x68]
mov bl, al
test ecx, ecx
mov byte [esp + 0xe8], 2
je 0x50d529
mov al, byte [ecx - 1]
test al, al
je 0x50d51d
cmp al, 0xff
je 0x50d51d
dec al
mov byte [ecx - 1], al
jmp 0x50d529
add ecx, 0xfffffffe
push ecx
call fcn.00570be5
add esp, 4
test bl, bl
push 1
je 0x50d547
mov eax, dword [ebp + 0x10]
lea ecx, [esp + 0x38]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0050ccc0
mov bl, al
jmp 0x50d6bb
mov ecx, esi
call fcn.0050d920
mov edx, dword [ebp + 0x10]
push 1
push edx
lea eax, [esp + 0x3c]
push edi
push eax
mov ecx, esi
call fcn.0050ccc0
mov bl, al
jmp 0x50d6bb
fild dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi + 0x44]
push 0
mov eax, dword [esi + 0x40]
push 0
push 0
push 0
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x78]
sub esp, 8
fstp qword [esp]
push edx
mov edx, dword [esp + 0x80]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0050ddc0
test al, al
je 0x50d6bb
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
jne 0x50d6a2
fld qword [esi + 0x38]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x44]
fst qword [esp + 0x44]
fild dword [esp + 0x1c]
mov eax, dword [esi]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0xa8]
mov dword [esp + 0x50], edx
fmul qword [esp + 0x24]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x48]
fadd st(1)
push edx
push ecx
lea edx, [esp + 0x40]
push edi
push edx
mov ecx, esi
fstp qword [esp + 0x68]
fstp st(0)
fild dword [esp + 0x34]
fadd qword [esp + 0x60]
fstp qword [esp + 0x70]
call dword [eax + 8]
push 0
push 0x601d20
push 0x603db8
push 0
push eax
mov dword [esp + 0x20], eax
call fcn.0053ce5e
add esp, 0x14
test eax, eax
je 0x50d646
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
mov dword [esi + 0xf0], ecx
lea ecx, [esi + 0xb8]
push ecx
mov ecx, eax
mov dword [esi + 0xf4], edx
call fcn.005108d0
mov edi, dword [esi + 0xa4]
push 0xc
mov ebx, dword [edi + 4]
call fcn.00570bbc
add esp, 4
mov ecx, edi
test edi, edi
jne 0x50d661
mov ecx, eax
mov dword [eax], ecx
mov ecx, ebx
test ebx, ebx
jne 0x50d66b
mov ecx, eax
mov dword [eax + 4], ecx
mov dword [edi + 4], eax
mov edx, dword [eax + 4]
mov dword [edx], eax
add eax, 8
test eax, eax
je 0x50d683
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0xa8]
mov edx, dword [esp + 0x54]
inc eax
mov dword [esi + 0xa8], eax
mov eax, dword [esp + 0x58]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov bl, 1
jmp 0x50d6bb
mov ecx, dword [ebp + 0x10]
push 1
push ecx
lea edx, [esp + 0x3c]
push edi
push edx
mov ecx, esi
call fcn.0050ccc0
mov bl, al
jmp 0x50d6bb
fstp st(0)
mov eax, dword [esp + 0xa4]
mov ecx, dword [esi + 0x28]
push eax
push ecx
call fcn.0050c000
mov dl, byte [esi + 0x74]
mov ecx, dword [esp + 0xa0]
mov byte [esi + 0x75], dl
mov byte [esi + 0x74], 0
xor esi, esi
add esp, 8
cmp ecx, esi
je 0x50d704
mov al, byte [ecx - 1]
test al, al
je 0x50d6f8
cmp al, 0xff
je 0x50d6f8
dec al
mov byte [ecx - 1], al
jmp 0x50d704
add ecx, 0xfffffffe
push ecx
call fcn.00570be5
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x98], esi
cmp ecx, esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0xa0], esi
je 0x50d742
mov al, byte [ecx - 1]
test al, al
je 0x50d736
cmp al, 0xff
je 0x50d736
dec al
mov byte [ecx - 1], al
jmp 0x50d742
add ecx, 0xfffffffe
push ecx
call fcn.00570be5
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x88], esi
cmp ecx, esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
je 0x50d77d
mov al, byte [ecx - 1]
test al, al
je 0x50d771
cmp al, 0xff
je 0x50d771
dec al
mov byte [ecx - 1], al
jmp 0x50d77d
add ecx, 0xfffffffe
push ecx
call fcn.00570be5
add esp, 4
mov ecx, dword [esp + 0xe0]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10