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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5a4d58
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x220]
mov ebp, dword [esi + 0x60]
mov ecx, dword [eax + 0x5c]
test ecx, ecx
je 0x51b343
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
movsx eax, ax
push 4
push eax
mov eax, dword [esi + 0x220]
mov ecx, dword [eax + 0x5c]
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov edx, dword [esi + 0xb4]
shl edx, 1
sub eax, edx
cmp eax, ebp
jle 0x51b71b
mov ebp, eax
jmp 0x51b71b
mov eax, dword [esi + 0xb4]
mov ecx, dword [esi + 0xc4]
lea edi, [eax + eax]
mov eax, dword [esi + 0x41c]
sub edi, ecx
test eax, eax
mov dword [esp + 0x18], edi
jle 0x51b3dd
mov ecx, dword [esi + 0x418]
mov ebx, dword [esi + 0x45c]
mov edi, dword [esi + 0x458]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [edx]
xor edx, edx
mov eax, ecx
shr eax, 4
div ebx
test edi, edi
je 0x51b3c3
mov eax, dword [edi + edx*4]
test eax, eax
je 0x51b3c3
cmp dword [eax + 8], ecx
je 0x51b3a3
mov eax, dword [eax]
test eax, eax
jne 0x51b396
jmp 0x51b3c3
test eax, eax
je 0x51b3c3
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xc4]
add eax, ecx
mov ecx, dword [esp + 0x18]
add ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
add ecx, 4
dec eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jne 0x51b37c
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x220]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x51b3f7
mov ecx, dword [eax + 0x24]
test ecx, ecx
jbe 0x51b3f7
test byte [eax + 0xc], 0x30
jne 0x51b3fd
cmp ebp, edi
jg 0x51b3fd
mov ebp, edi
mov ecx, dword [esi + 0x228]
test ecx, ecx
je 0x51b457
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x51b457
mov eax, ecx
xor edx, edx
shr eax, 4
div dword [esi + 0x45c]
mov eax, dword [esi + 0x458]
test eax, eax
je 0x51b457
mov eax, dword [eax + edx*4]
test eax, eax
je 0x51b457
cmp dword [eax + 8], ecx
je 0x51b439
mov eax, dword [eax]
test eax, eax
jne 0x51b42c
jmp 0x51b457
test eax, eax
je 0x51b457
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x28], edx
add eax, ecx
add eax, edi
cmp ebp, eax
jg 0x51b457
mov ebp, eax
mov ecx, dword [esi + 0x22c]
test ecx, ecx
je 0x51b4b1
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x51b4b1
mov eax, ecx
xor edx, edx
shr eax, 4
div dword [esi + 0x45c]
mov eax, dword [esi + 0x458]
test eax, eax
je 0x51b4b1
mov eax, dword [eax + edx*4]
test eax, eax
je 0x51b4b1
cmp dword [eax + 8], ecx
je 0x51b493
mov eax, dword [eax]
test eax, eax
jne 0x51b486
jmp 0x51b4b1
test eax, eax
je 0x51b4b1
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xb4]
add eax, ecx
add eax, edi
cmp ebp, eax
jg 0x51b4b1
mov ebp, eax
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x51b4c8
mov ebx, dword [esi + 0xdc]
mov eax, dword [esi + 0xb4]
add ebx, eax
jmp 0x51b4ca
xor ebx, ebx
mov eax, dword [esi + 0x78]
mov dword [esp + 0x10], ebx
test eax, eax
je 0x51b4e5
mov eax, dword [esi + 0xd4]
mov ecx, dword [esi + 0xb4]
add eax, ecx
jmp 0x51b4e7
xor eax, eax
mov ecx, dword [esi + 0x220]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
test byte [ecx + 0xc], 0x40
jne 0x51b4ff
mov dword [esp + 0x20], ebx
mov eax, dword [esi + 0x444]
test eax, eax
jle 0x51b560
mov ecx, dword [esi + 0x440]
mov edi, dword [esi + 0x458]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x18]
mov ecx, dword [edx]
xor edx, edx
mov eax, ecx
shr eax, 4
div dword [esi + 0x45c]
test edi, edi
je 0x51b546
mov eax, dword [edi + edx*4]
test eax, eax
je 0x51b546
cmp dword [eax + 8], ecx
je 0x51b59a
mov eax, dword [eax]
test eax, eax
jne 0x51b53b
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
add ecx, 4
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
jne 0x51b51d
lea ecx, [esp + 0x10]
call fcn.0046b700
mov ecx, dword [esi + 0x228]
xor edx, edx
mov eax, ecx
shr eax, 4
div dword [esi + 0x45c]
mov eax, dword [esi + 0x458]
test eax, eax
je 0x51b5cf
mov eax, dword [eax + edx*4]
test eax, eax
je 0x51b5cf
cmp dword [eax + 8], ecx
je 0x51b5b7
mov eax, dword [eax]
test eax, eax
jne 0x51b58d
jmp 0x51b5cf
test eax, eax
je 0x51b546
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x30], eax
lea eax, [ecx + ebx]
cmp ebp, eax
jg 0x51b54a
mov ebp, eax
jmp 0x51b54a
test eax, eax
je 0x51b5cf
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 0x10]
cmp ebp, ecx
mov dword [esp + 0x14], edx
jg 0x51b5cf
mov ebp, ecx
mov ecx, dword [esi + 0x22c]
xor edx, edx
mov eax, ecx
shr eax, 4
div dword [esi + 0x45c]
mov eax, dword [esi + 0x458]
test eax, eax
je 0x51b618
mov eax, dword [eax + edx*4]
test eax, eax
je 0x51b618
cmp dword [eax + 8], ecx
je 0x51b600
mov eax, dword [eax]
test eax, eax
jne 0x51b5f3
jmp 0x51b618
test eax, eax
je 0x51b618
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x10], ecx
mov eax, dword [eax + 0x10]
cmp ebp, ecx
mov dword [esp + 0x14], eax
jg 0x51b618
mov ebp, ecx
mov ecx, ebp
push 1
sub ecx, ebx
lea edx, [esi + 0x15c]
push ecx
push edx
mov ecx, esi
call fcn.0051aee0
add eax, ebx
cmp ebp, eax
jg 0x51b635
mov ebp, eax
mov eax, ebp
push 0
sub eax, ebx
lea ecx, [esi + 0x178]
push eax
push ecx
mov ecx, esi
call fcn.0051aee0
add eax, ebx
cmp ebp, eax
jg 0x51b652
mov ebp, eax
mov eax, dword [esi + 0x220]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x51b6d0
mov ecx, dword [eax + 0x24]
test ecx, ecx
jbe 0x51b6d0
test byte [eax + 0xc], 0x30
je 0x51b6d0
xor edi, edi
test ecx, ecx
jle 0x51b6d0
mov edx, dword [eax + 0x28]
lea ecx, [esp + 0x1c]
mov eax, dword [edx + edi*8 + 4]
push eax
push ecx
mov ecx, esi
call fcn.005187f0
mov edx, ebp
lea eax, [esp + 0x1c]
sub edx, ebx
mov dword [esp + 0x3c], 0
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0056bc92
mov ecx, esi
call fcn.0051a550
add eax, ebx
cmp ebp, eax
jg 0x51b6b3
mov ebp, eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 0xffffffff
call fcn.0056bf1d
mov eax, dword [esi + 0x220]
inc edi
cmp edi, dword [eax + 0x24]
jl 0x51b672
mov edi, dword [esp + 0x20]
mov ecx, ebp
sub ecx, edi
push 0
lea edx, [esi + 0x1cc]
push ecx
push edx
mov ecx, esi
call fcn.0051aee0
add eax, edi
cmp ebp, eax
jg 0x51b6f1
mov ebp, eax
mov edi, dword [esp + 0x24]
mov eax, ebp
sub eax, edi
push 0
lea ecx, [esi + 0x194]
push eax
push ecx
mov ecx, esi
call fcn.0051aee0
add eax, edi
cmp ebp, eax
jg 0x51b712
mov ebp, eax
mov esi, dword [esi + 0x5c]
cmp ebp, esi
jl 0x51b71b
mov ebp, esi
mov ecx, dword [esp + 0x34]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret