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

Disassembly:
sub esp, 0xf0
push ebx
push ebp
mov ebp, dword [esp + 0x104]
push esi
mov esi, dword [esp + 0x100]
push edi
mov ebx, esi
call fcn.005a6d80
cmp dword [esi + 0x50], 0
je 0x5a7eb3
mov edi, dword [esp + 0x108]
test edi, edi
je 0x5a7eb3
mov ebx, dword [esi + 0x4c]
test ebx, ebx
je 0x5a7eb3
mov eax, dword [esi + 0x48]
test eax, eax
mov dword [esp + 0x40], eax
je 0x5a7eb3
xor eax, eax
add ebx, 0x7c
test ebp, ebp
setle al
mov ecx, edi
mov dword [esp + 0x58], ebx
sub eax, 1
and eax, ebp
mov dword [esi + 0x5c], eax
mov edx, dword [edi]
mov eax, dword [edx + 4]
call eax
cmp dword [esi + 0x14], eax
jg 0x5a7eb3
mov edx, dword [edi]
mov eax, dword [edx + 8]
mov ecx, edi
call eax
mov ecx, dword [esi + 0x18]
add ecx, dword [esi + 0x5c]
cmp ecx, eax
jg 0x5a7eb3
mov eax, ebx
call fcn.0057a810
test eax, eax
jbe 0x5a7d4a
mov edi, dword [esi + 0x48]
add edi, 0x48
call fcn.00577cb0
test eax, eax
je 0x5a7d4a
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
xor ebp, ebp
mov eax, ebx
mov dword [esp + 0x30], ebp
call fcn.0057a810
test eax, eax
jle 0x5a7d4a
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov edx, dword [eax]
cmp dword [edx + 0x2c], 0
je 0x5a7d43
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax]
mov ecx, dword [esp + 0x104]
call fcn.00590f30
mov dword [esp + 0x44], eax
call fcn.0057a830
mov eax, dword [eax]
test eax, eax
je 0x5a7d31
movzx eax, byte [eax]
and eax, 1
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
test eax, eax
je 0x5a7d31
mov edx, dword [esp + 0x104]
mov eax, dword [edx + 0x4c]
cmp ebp, dword [eax + 0x8c]
jne 0x5a7168
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x1000
jne 0x5a7168
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x64]
mov dword [esp + 0x1c], edx
jmp 0x5a7173
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x60]
mov dword [esp + 0x1c], ecx
mov edx, dword [esp + 0x104]
mov eax, dword [edx + 0x4c]
cmp dword [eax + 0x90], 0
je 0x5a72d0
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
add eax, 0xc
mov dword [esp + 0x7c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x80], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x84], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x104]
mov ecx, dword [eax + 0x5c]
push ecx
mov dword [esp + 0x8c], edx
push 0
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x200000
je 0x5a7285
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call fcn.0057a7e0
fstp dword [esp + 0x18]
add esp, 4
call fcn.0057a830
fld dword [esp + 0x14]
mov ecx, dword [eax]
fmul qword [0x6406a8]
mov esi, dword [esp + 0x88]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
mov edi, dword [esp + 0x84]
or eax, 0xc00
mov dword [esp + 0x28], eax
mov edx, dword [esp + 0x40]
fldcw word [esp + 0x28]
add ecx, 8
mov ecx, dword [ecx]
add edx, 0x48
fistp qword [esp + 0x20]
mov eax, dword [esp + 0x20]
shl eax, 0x18
or eax, dword [esp + 0x1c]
fldcw word [esp + 0x14]
push eax
mov eax, dword [esp + 0x84]
push 0
sub esi, eax
push esi
mov esi, dword [esp + 0x88]
sub edi, esi
push edi
push eax
mov eax, dword [esp + 0x11c]
push esi
push eax
mov eax, dword [esp + 0x120]
push eax
call fcn.00590190
jmp 0x5a72d0
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x8c]
push edx
mov edx, dword [esp + 0x8c]
add eax, 8
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x8c]
sub ecx, eax
push ecx
sub edx, edi
push edx
push eax
mov eax, dword [esp + 0x120]
push eax
mov eax, dword [esp + 0x120]
call fcn.00590c10
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 4
jne 0x5a74e8
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x800
jne 0x5a74e8
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x1000
jne 0x5a74e8
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x4000
jne 0x5a74e8
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 0x10
je 0x5a7412
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x1c]
add eax, 0x1c
mov dword [esp + 0x30], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x104]
mov ecx, dword [eax + 0x5c]
push ecx
mov dword [esp + 0x40], edx
push 0
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
call fcn.0057a830
mov esi, dword [esp + 0x104]
mov eax, dword [eax]
mov ecx, esi
call fcn.00590ee0
test eax, eax
mov dword [esp + 0x44], eax
je 0x5a759e
mov esi, dword [esi + 0x50]
call fcn.0057b9a0
mov esi, ebx
mov dword [esp + 0x28], eax
call fcn.0057a830
mov eax, dword [eax]
add eax, 4
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
call fcn.0057a830
mov dword [esp + 0x1c], eax
call fcn.0057a830
mov dword [esp + 0x14], eax
call fcn.0057a830
mov eax, dword [eax]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x44]
lea edx, [ecx + 0x64]
push edx
mov edx, dword [esp + 0x24]
add ecx, 0x60
push ecx
mov ecx, dword [esp + 0x50]
push ecx
mov ecx, dword [edx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [ecx]
add eax, 0x30
push eax
mov eax, dword [esp + 0x120]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x120]
push eax
push ecx
mov ecx, dword [esp + 0x50]
add edx, 0x34
call fcn.00590400
jmp 0x5a759e
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 8
je 0x5a759e
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x1c]
add eax, 0x1c
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 4]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 8]
mov ecx, dword [esp + 0x104]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0xc]
mov edx, dword [ecx + 0x5c]
push edx
mov dword [esp + 0x40], eax
push 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x2c], ecx
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x108]
push eax
mov eax, dword [esp + 0x108]
push ecx
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x3c]
mov edx, ecx
call fcn.00590880
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x30]
add eax, 0x3c
mov dword [eax], ecx
mov edx, dword [esp + 0x34]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x38]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x3c]
mov dword [eax + 0xc], edx
call fcn.0057a830
mov ecx, dword [esp + 0x104]
mov edx, dword [ecx + 0x5c]
mov eax, dword [eax]
neg edx
push edx
push 0
add eax, 0x3c
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
jmp 0x5a759e
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 4]
add eax, 4
mov dword [esp + 0x20], ecx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x28]
sub ecx, dword [eax + 0x20]
add eax, 0x1c
mov dword [esp + 0x14], ecx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x24]
sub ecx, dword [eax + 0x1c]
add eax, 0x1c
mov dword [esp + 0xdc], ecx
call fcn.0057a830
mov dword [esp + 0x2c], eax
call fcn.0057a830
mov dword [esp + 0x28], eax
call fcn.0057a830
mov dword [esp + 0x18], eax
call fcn.0057a830
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
push edx
push ecx
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x30]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
push ecx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x38]
mov edx, dword [edx]
push ecx
mov ecx, dword [esp + 0xec]
push ecx
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx]
mov esi, dword [ecx + 0x20]
mov ecx, dword [esp + 0x118]
add esi, dword [ecx + 0x5c]
push esi
push eax
mov eax, dword [esp + 0x124]
push eax
push ecx
mov ecx, dword [edx + 0x34]
mov edx, dword [esp + 0x44]
call fcn.0058fec0
mov eax, dword [esp + 0x104]
mov ecx, dword [eax + 0x4c]
cmp dword [ecx + 0x30], 2
jne 0x5a76f8
mov edx, dword [eax + 0x50]
mov eax, dword [edx + 0x58]
mov eax, dword [eax + 0x3c]
test eax, eax
mov dword [esp + 0x20], eax
je 0x5a76f8
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov ecx, dword [eax]
cmp dword [ecx + 0x38], 0
je 0x5a76f8
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x44]
add eax, 0x3c
sub edx, dword [eax]
je 0x5a76f8
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x48]
add eax, 0x3c
sub ecx, dword [eax + 4]
je 0x5a76f8
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x38]
mov edi, dword [esp + 0x20]
call fcn.005a00f0
mov esi, eax
test esi, esi
mov dword [esp + 0x20], esi
je 0x5a76f8
xor eax, eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
mov dword [esp + 0xb4], eax
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov edi, ebp
mov esi, ebx
mov dword [esp + 0xb8], eax
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x3c]
add eax, 0x3c
mov dword [esp + 0xbc], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xc0], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xc4], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x104]
mov ecx, dword [eax + 0x5c]
push ecx
mov dword [esp + 0xcc], edx
push 0
lea edx, [esp + 0xc4]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x108]
lea eax, [esp + 0xbc]
call fcn.005812a0
mov ecx, dword [esp + 0xc8]
mov esi, dword [esp + 0xc4]
push 1
lea eax, [esp + 0xb0]
push eax
mov eax, dword [esp + 0xc8]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0xc8]
sub esi, ecx
push esi
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
xor cl, cl
xor edx, edx
call fcn.005805e0
mov edi, ebp
mov esi, ebx
mov dword [esp + 0x14], 0
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000
jne 0x5a786e
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x40000
jne 0x5a786e
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x1000000
jne 0x5a786e
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000000
jne 0x5a786e
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x400000
jne 0x5a7772
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x100
je 0x5a7d31
mov edx, dword [esp + 0x104]
mov eax, dword [edx + 0x50]
test eax, eax
je 0x5a7d31
mov eax, dword [eax + 0x58]
test eax, eax
je 0x5a7d31
mov eax, dword [eax + 0x40]
test eax, eax
mov dword [esp + 0x18], eax
je 0x5a7d31
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
add eax, 0x4c
mov dword [esp + 0xf0], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xf4], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xf8], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x104]
mov ecx, dword [eax + 0x5c]
push ecx
mov dword [esp + 0x100], edx
push 0
lea edx, [esp + 0xf8]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x108]
lea eax, [esp + 0xf0]
call fcn.005812a0
fld dword [0x640944]
push ecx
mov ecx, dword [esp + 0x1c]
fstp dword [esp]
push edx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0xfc]
mov dword [esp + 0x2c], 0
call fcn.0058d8c0
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [esp + 0x104]
add eax, 0x4c
mov dword [ecx + 0x128], edx
mov edx, dword [eax + 4]
mov dword [ecx + 0x12c], edx
mov edx, dword [eax + 8]
mov dword [ecx + 0x130], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0x134], eax
mov dword [ecx + 0x158], 1
jmp 0x5a7d31
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000
je 0x5a7894
mov ecx, dword [esp + 0x104]
add ecx, 0xa8
mov dword [esp + 0x14], ecx
jmp 0x5a78ec
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x40000
je 0x5a78ba
mov edx, dword [esp + 0x104]
add edx, 0xe8
mov dword [esp + 0x14], edx
jmp 0x5a78ec
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x1000000
jne 0x5a78dc
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000000
je 0x5a78ec
mov eax, dword [esp + 0x104]
add eax, 0x168
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x10]
test edx, edx
mov dword [esp + 0x18], edx
je 0x5a7ae3
mov esi, dword [edx + 0xc]
mov edx, dword [edx + 0x10]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xe8], esi
mov dword [esp + 0xd4], esi
mov edi, ebp
mov esi, ebx
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], ecx
mov dword [esp + 0xec], edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], ecx
mov dword [esp + 0xd8], edx
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 8
je 0x5a7a11
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x6c], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], eax
call fcn.0057a830
mov ecx, dword [eax]
mov eax, dword [ecx + 0x44]
mov edx, dword [esp + 0xe8]
add eax, 1
mov dword [esp + 0x6c], eax
add eax, edx
mov dword [esp + 0x74], eax
call fcn.0057a830
mov eax, dword [eax]
add eax, 0x40
mov dword [esp + 0x20], eax
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov edx, dword [esp + 0x20]
cmp ecx, dword [edx]
jge 0x5a79c9
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x70], ecx
jmp 0x5a79d7
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x40]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0xec]
mov edx, dword [esp + 0x70]
add edx, ecx
mov edi, ebp
mov esi, ebx
mov dword [esp + 0x78], edx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
add eax, 0x4c
mov dword [eax], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
add eax, 0x4c
mov dword [esp + 0x9c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0xa0], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0xa4], ecx
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x104]
mov ecx, dword [eax + 0x5c]
push ecx
mov dword [esp + 0xac], edx
push 0
lea edx, [esp + 0xa4]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov esi, dword [esp + 0x108]
lea eax, [esp + 0x9c]
mov edx, esi
call fcn.005812a0
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
push 0
push 0
lea eax, [esp + 0xe8]
push eax
mov eax, dword [esp + 0xac]
sub ecx, eax
push ecx
mov ecx, dword [esp + 0xac]
push ecx
push esi
mov esi, dword [esp + 0x30]
sub edx, ecx
mov bl, 1
call fcn.00580620
mov esi, dword [esp + 0x58]
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [esp + 0x14]
add eax, 0x4c
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x30], 1
mov ebx, esi
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
test dword [eax], 0x2000000
je 0x5a7d31
mov ecx, dword [esp + 0x104]
mov eax, dword [ecx + 0x1b8]
test eax, eax
mov dword [esp + 0x18], eax
je 0x5a7d31
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
xor ecx, ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov dword [esp + 0x98], eax
call fcn.0057a830
mov eax, dword [eax]
test byte [eax], 8
je 0x5a7c03
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [eax + 0x4c]
mov edx, dword [eax + 0x50]
add eax, 0x4c
mov dword [esp + 0x5c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x60], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
call fcn.0057a830
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov ecx, dword [esp + 0x94]
add eax, 1
mov dword [esp + 0x5c], eax
add eax, ecx
mov dword [esp + 0x64], eax
call fcn.0057a830
mov eax, dword [eax]
add eax, 0x40
mov dword [esp + 0x20], eax
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx]
jge 0x5a7bbb
call fcn.0057a830
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
mov dword [esp + 0x60], eax
jmp 0x5a7bc9
call fcn.0057a830
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
mov dword [esp + 0x60], edx
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x60]
add ecx, eax
mov edi, ebp
mov esi, ebx
mov dword [esp + 0x68], ecx
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
add eax, 0x4c
mov dword [eax], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov edi, ebp
mov esi, ebx
call fcn.0057a830
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov ecx, dword [esp + 0xd4]
sub ecx, dword [esp + 0xcc]
add eax, 0x4c
mov dword [esp + 0x48], edx
mov esi, dword [eax + 4]
mov dword [esp + 0x4c], esi
mov edi, dword [eax + 8]
lea edx, [edx + ecx + 2]
mov dword [esp + 0x50], edi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0xd8]
sub edx, dword [esp + 0xd0]
lea ecx, [edi + ecx + 2]
lea esi, [esi + edx - 2]
mov dword [esp + 0x4c], esi
lea edx, [eax + edx - 2]
mov edi, ebp
mov esi, ebx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], edx
call fcn.0057a830
mov eax, dword [eax]
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x4c], ecx
mov edx, dword [esp + 0x4c]
add eax, 0x4c
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x50]
mov dword [eax + 8], ecx
mov edx, dword [esp + 0x54]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x104]
mov ecx, dword [eax + 0x5c]
push ecx
push 0
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [esp + 0x108]
lea eax, [esp + 0x48]
call fcn.005812a0
mov ecx, dword [esp + 0x98]
mov edi, dword [esp + 0x94]
mov esi, dword [esp + 0x18]
push 0
push 0
lea eax, [esp + 0x94]
push eax
mov eax, dword [esp + 0x54]
push ecx
push eax
mov eax, dword [esp + 0x60]
push edx
mov bl, 1
mov edx, edi
call fcn.00580620
mov eax, dword [esp + 0x104]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x98]
mov esi, dword [esp + 0x48]
mov ebx, dword [esp + 0x58]
add edx, ecx
mov dword [eax + 0x1a8], esi
add edi, esi
mov dword [eax + 0x1ac], ecx
mov dword [eax + 0x1b0], edi
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], edi
mov dword [eax + 0x1b4], edx
mov dword [eax + 0x1d8], 1
mov eax, ebx
add ebp, 1
call fcn.0057a810
cmp ebp, eax
jl 0x5a70e6
mov esi, dword [esp + 0x104]
cmp dword [esi + 0x98], 0
je 0x5a7dca
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 0x1c]
mov ebp, dword [esi + ecx*4 + 0x78]
test ebp, ebp
je 0x5a7dca
mov edx, dword [ebp + 0xc]
mov ebx, dword [esp + 0x108]
xor eax, eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xb8], eax
lea edi, [esi + 0x68]
mov dword [esp + 0xb4], edx
mov eax, edi
mov edx, ebx
call fcn.005812a0
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x5c]
push 0
push 0
lea ecx, [esp + 0xb4]
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [edi + 8]
sub edx, dword [edi]
push ecx
push ebx
mov bl, 1
mov esi, ebp
call fcn.00580620
mov esi, dword [esp + 0x104]
call fcn.004062c0
mov edx, dword [0x678ec4]
cmp dword [edx + 0xd94], 0
mov ebp, 1
mov dword [0x678ec0], ebp
je 0x5a7e20
mov eax, dword [esi + 0x1f8]
test eax, eax
je 0x5a7e20
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov edx, 5
add eax, edx
add ecx, edx
mov dword [esi + 0x1e8], edx
mov dword [esi + 0x1ec], edx
mov dword [esi + 0x1f0], eax
mov dword [esi + 0x1f4], ecx
mov dword [esi + 0x218], ebp
mov eax, dword [esi + 0x48]
test eax, eax
je 0x5a7eb3
lea edi, [eax + 0x98]
test edi, edi
je 0x5a7eb3
call fcn.00577cb0
test eax, eax
je 0x5a7eb3
mov eax, dword [esi + 0x4c]
mov ecx, dword [eax + 0x3e8]
cmp dword [ecx - 0xc], 0
je 0x5a7eb3
cmp dword [eax + 0x3f8], 0
je 0x5a7eb3
xor ebx, ebx
mov edx, ecx
cmp dword [edx - 0xc], ebx
je 0x5a7e69
cmp dword [eax + 0x3ec], ebx
je 0x5a7e69
mov ebx, ebp
movzx ebp, byte [eax + 0x3f4]
mov ecx, dword [eax + 0x400]
mov edx, dword [eax + 0x3fc]
shl ebp, 0x18
or ebp, dword [edi + 0x18]
push ebp
push ebx
mov ebx, dword [eax + 0x408]
sub ebx, ecx
push ebx
mov ebx, dword [eax + 0x404]
sub ebx, edx
push ebx
mov ebx, dword [esi + 0x5c]
add ebx, ecx
mov ecx, dword [esp + 0x118]
push ebx
push edx
push ecx
mov ecx, dword [eax + 0x3e8]
push esi
mov edx, edi
call fcn.00590190
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xf0
ret 0xc