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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x184
mov eax, dword [0x64e0a0]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call fcn.0042c367
mov ecx, edi
call fcn.00594000
sub esp, 8
lea ecx, [edi + 0xe70]
push 0x190
push 0xe
call fcn.005940a0
add esp, 0x10
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.00429fbe
mov ebx, eax
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 0x1c]
push 0xffffffffffffffff
push 0x78
push 0
push dword [0x65c0f0]
lea ecx, [edi + 0x94]
push 0
call fcn.0042cd38
push 0xffffffffffffffff
push 0xc8
push 0
push dword [0x65c0e8]
lea ecx, [edi + 0x94]
push 1
call fcn.0042cd38
push 0xffffffffffffffff
push 0xc8
push 0
push dword [0x65c0ec]
lea ecx, [edi + 0x94]
push 2
call fcn.0042cd38
mov esi, dword [edi + 0x118]
push 0x3c
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00546fa0
xor eax, eax
add esp, 0xc
mov dword [esp + 0xc], eax
cmp dword [edi + 0x10c], eax
jbe 0x57261a
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0x104d
push dword [edi + 0xb4]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], 0
mov dword [esp + 0x50], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572490
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
sub ecx, edx
sar ecx, 1
push 0
lea esi, [esi + ecx*2]
push 0x104c
push dword [edi + 0xb4]
add esi, 2
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], 1
mov dword [esp + 0x50], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp word [esi], 0
mov ecx, dword [edi + 0xdf8]
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
je 0x572533
test ecx, ecx
je 0x572501
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x28]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572506
sub ecx, edx
lea eax, [esp + 0x68]
push eax
sar ecx, 1
push ecx
push esi
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x68]
cmp eax, dword [esp + 0x10]
jbe 0x572533
mov dword [esp + 0x10], eax
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x572540
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572540
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
sub ecx, edx
sar ecx, 1
push 0
lea esi, [esi + ecx*2]
push 0x104c
push dword [edi + 0xb4]
add esi, 2
mov dword [esp + 0x3c], 1
mov dword [esp + 0x44], 2
mov dword [esp + 0x50], esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp word [esi], 0
mov ecx, dword [edi + 0xdf8]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
je 0x5725e3
test ecx, ecx
je 0x5725b1
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x28]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5725b6
sub ecx, edx
lea eax, [esp + 0x78]
push eax
sar ecx, 1
push ecx
push esi
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0x14]
jbe 0x5725e3
mov dword [esp + 0x14], eax
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x5725f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5725f0
mov eax, dword [esp + 0xc]
sub ecx, edx
sar ecx, 1
inc eax
lea esi, [esi + ecx*2]
add esi, 2
mov dword [esp + 0xc], eax
cmp eax, dword [edi + 0x10c]
jb 0x572455
mov eax, dword [ebx]
push 0xffffffffffffffff
mov ecx, ebx
call dword [eax + 0x20]
push dword [ebx + 4]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
add eax, 0x14
add ebx, 0x14
cmp eax, 0xc8
jae 0x572649
mov eax, 0xc8
cmp ebx, 0xc8
jae 0x572656
mov ebx, 0xc8
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
movzx eax, ax
push eax
push 1
push 0x101e
push dword [edi + 0xb4]
call esi
movzx eax, bx
push eax
push 2
push 0x101e
push dword [edi + 0xb4]
call esi
mov eax, dword [edi + 0xdf8]
test eax, eax
je 0x57268f
mov eax, dword [eax + 4]
push 1
push eax
push 0x30
push dword [edi + 0xb4]
call esi
mov esi, dword [0x65bd7c]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5726a7
sub ecx, edx
sar ecx, 1
mov edx, 0
je 0x5726d7
lea ecx, [ecx]
cmp word [esi + edx*2], 0x26
jne 0x5726d2
lea eax, [edx + 1]
cmp eax, ecx
jb 0x5727c8
inc edx
cmp edx, ecx
jb 0x5726c0
xor cl, cl
mov byte [edi + 0x130], cl
push 0x44c
mov ecx, edi
call fcn.004283e2
mov esi, eax
lea eax, [esp + 0x78]
push eax
push dword [edi + 0x20]
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x68]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x68]
push eax
mov ecx, edi
call fcn.0042a377
call dword [sym.imp.USER32.dll_CreatePopupMenu]
push eax
lea ecx, [edi + 0x128]
call fcn.0042ec3b
push dword [0x65c0f4]
push 1
push 0
push dword [edi + 0x12c]
call dword [sym.imp.USER32.dll_AppendMenuW]
mov edx, dword [0x65c198]
mov ecx, edx
lea ebx, [edi + 0xe74]
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5727a0
sub ecx, esi
sar ecx, 1
cmp ecx, 0x100
jae 0x5727df
push edx
push 0x100
push ebx
call fcn.00543349
add esp, 0xc
jmp 0x5727fc
mov cl, byte [esi + edx*2 + 2]
lea eax, [ecx - 0x61]
cmp al, 0x19
ja 0x5726d9
add cl, 0xe0
jmp 0x5726d9
push 0xff
push edx
push 0x100
push ebx
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [ebx + 0x1fe], ax
lea edx, [edi + 0x9dc]
mov ecx, edx
lea eax, [edi + 0x1074]
mov dword [esp + 0x14], eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572811
sub ecx, esi
sar ecx, 1
cmp ecx, 0x100
jae 0x57283f
push edx
lea eax, [edi + 0x1074]
push 0x100
push eax
call fcn.00543349
add esp, 0xc
jmp 0x572862
push 0xff
push edx
push 0x100
lea esi, [edi + 0x1074]
push esi
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x1fe], ax
mov edx, dword [0x65c194]
mov ecx, edx
lea eax, [edi + 0x1274]
mov dword [esp + 0x10], eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572877
sub ecx, esi
sar ecx, 1
cmp ecx, 0x100
jae 0x5728a5
push edx
lea eax, [edi + 0x1274]
push 0x100
push eax
call fcn.00543349
add esp, 0xc
jmp 0x5728c8
push 0xff
push edx
push 0x100
lea esi, [edi + 0x1274]
push esi
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x1fe], ax
lea edx, [edi + 0xbe4]
mov ecx, edx
lea eax, [edi + 0x1474]
mov dword [esp + 0xc], eax
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5728e0
sub ecx, esi
sar ecx, 1
cmp ecx, 0x100
jae 0x57290e
push edx
lea eax, [edi + 0x1474]
push 0x100
push eax
call fcn.00543349
add esp, 0xc
jmp 0x572931
push 0xff
push edx
push 0x100
lea esi, [edi + 0x1474]
push esi
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x1fe], ax
mov edx, dword [0x65c19c]
mov ecx, edx
lea eax, [edi + 0x1674]
mov dword [esp + 0x24], eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572946
sub ecx, esi
sar ecx, 1
cmp ecx, 0x100
jae 0x572974
push edx
lea eax, [edi + 0x1674]
push 0x100
push eax
call fcn.00543349
add esp, 0xc
jmp 0x572997
push 0xff
push edx
push 0x100
lea esi, [edi + 0x1674]
push esi
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x1fe], ax
mov edx, dword [edi + 0xdec]
push ecx
mov ecx, dword [0x65c1a8]
lea eax, [esp + 0x8c]
push eax
call fcn.005c1ae0
lea ecx, [esp + 0x90]
lea esi, [edi + 0x1874]
add esp, 8
mov dword [esp + 0x20], esi
lea edx, [ecx + 2]
jmp 0x5729d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5729d0
sub ecx, edx
sar ecx, 1
lea eax, [esp + 0x88]
cmp ecx, 0x100
jae 0x5729ff
push eax
push 0x100
push esi
call fcn.00543349
add esp, 0xc
jmp 0x572a1c
push 0xff
push eax
push 0x100
push esi
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x1fe], ax
mov edx, dword [0x65c1a0]
mov ecx, edx
lea eax, [edi + 0x1a74]
mov dword [esp + 0x18], eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572a31
sub ecx, esi
sar ecx, 1
cmp ecx, 0x100
jae 0x572a5f
push edx
lea eax, [edi + 0x1a74]
push 0x100
push eax
call fcn.00543349
add esp, 0xc
jmp 0x572a82
push 0xff
push edx
push 0x100
lea esi, [edi + 0x1a74]
push esi
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x1fe], ax
mov edx, dword [edi + 0xdf0]
push ecx
mov ecx, dword [0x65c1a8]
lea eax, [esp + 0x8c]
push eax
call fcn.005c1ae0
lea ecx, [esp + 0x90]
lea esi, [edi + 0x1c74]
add esp, 8
mov dword [esp + 0x28], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572ab3
sub ecx, edx
sar ecx, 1
lea eax, [esp + 0x88]
cmp ecx, 0x100
jae 0x572ae2
push eax
push 0x100
push esi
call fcn.00543349
add esp, 0xc
jmp 0x572aff
push 0xff
push eax
push 0x100
push esi
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x1fe], ax
mov edx, dword [0x65c1a4]
mov ecx, edx
lea eax, [edi + 0x1e74]
mov dword [esp + 0x1c], eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572b14
sub ecx, esi
sar ecx, 1
cmp ecx, 0x100
jae 0x572b42
push edx
lea eax, [edi + 0x1e74]
push 0x100
push eax
call fcn.00543349
add esp, 0xc
jmp 0x572b65
push 0xff
push edx
push 0x100
lea esi, [edi + 0x1e74]
push esi
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x1fe], ax
mov edx, dword [edi + 0xdf4]
push ecx
mov ecx, dword [0x65c1a8]
lea eax, [esp + 0x8c]
push eax
call fcn.005c1ae0
lea ecx, [esp + 0x90]
lea esi, [edi + 0x2074]
add esp, 8
mov dword [esp + 0x78], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572b96
sub ecx, edx
sar ecx, 1
lea eax, [esp + 0x88]
cmp ecx, 0x100
jae 0x572bc5
push eax
push 0x100
push esi
call fcn.00543349
add esp, 0xc
jmp 0x572be2
push 0xff
push eax
push 0x100
push esi
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x1fe], ax
mov ecx, ebx
lea esi, [edi + 0x1dc]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572bf0
sub ecx, edx
sar ecx, 1
cmp ecx, 0x400
jae 0x572c18
push ebx
push 0x400
push esi
call fcn.00543349
add esp, 0xc
jmp 0x572c35
push 0x3ff
push ebx
push 0x400
push esi
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572c40
sub ecx, edx
sar ecx, 1
mov edi, 0x3ff
lea eax, [ecx + 1]
lea ebx, [edi + 1]
cmp eax, ebx
jae 0x572c9a
lea eax, [ecx + 2]
cmp eax, ebx
ja 0x572c76
push 0x60efe8
push ebx
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x572c9a
mov eax, edi
sub eax, ecx
push eax
mov eax, ebx
sub eax, ecx
push 0x60efe8
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572ca0
sub ecx, edx
mov edx, dword [esp + 0x14]
sar ecx, 1
lea eax, [edx + 2]
mov dword [esp + 0x68], eax
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x572cc0
sub edx, dword [esp + 0x68]
lea eax, [ecx + 1]
sar edx, 1
cmp eax, 0x400
jae 0x572d1e
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x400
ja 0x572cfb
push dword [esp + 0x14]
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x572d1e
mov eax, edi
sub eax, ecx
push eax
push dword [esp + 0x18]
mov eax, ebx
sub eax, ecx
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572d23
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x400
jae 0x572d7f
lea eax, [ecx + 3]
cmp eax, 0x400
ja 0x572d5b
push 0x60efec
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x572d7f
mov eax, edi
sub eax, ecx
push eax
mov eax, ebx
sub eax, ecx
push 0x60efec
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572d84
sub ecx, edx
mov edx, dword [esp + 0x10]
sar ecx, 1
lea eax, [edx + 2]
mov dword [esp + 0x68], eax
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x572da0
sub edx, dword [esp + 0x68]
lea eax, [ecx + 1]
sar edx, 1
cmp eax, 0x400
jae 0x572dfe
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x400
ja 0x572ddb
push dword [esp + 0x10]
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x572dfe
mov eax, edi
sub eax, ecx
push eax
push dword [esp + 0x14]
mov eax, ebx
sub eax, ecx
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572e03
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x400
jae 0x572e5f
lea eax, [ecx + 2]
cmp eax, 0x400
ja 0x572e3b
push 0x60eff4
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x572e5f
mov eax, edi
sub eax, ecx
push eax
mov eax, ebx
sub eax, ecx
push 0x60eff4
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572e64
sub ecx, edx
mov edx, dword [esp + 0xc]
sar ecx, 1
lea eax, [edx + 2]
mov dword [esp + 0x68], eax
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x572e80
sub edx, dword [esp + 0x68]
lea eax, [ecx + 1]
sar edx, 1
cmp eax, 0x400
jae 0x572ede
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x400
ja 0x572ebb
push dword [esp + 0xc]
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x572ede
mov eax, edi
sub eax, ecx
push eax
push dword [esp + 0x10]
mov eax, ebx
sub eax, ecx
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572ee3
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x400
jae 0x572f3f
lea eax, [ecx + 3]
cmp eax, 0x400
ja 0x572f1b
push 0x60eff8
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x572f3f
mov eax, edi
sub eax, ecx
push eax
mov eax, ebx
sub eax, ecx
push 0x60eff8
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572f44
sub ecx, edx
mov edx, dword [esp + 0x24]
sar ecx, 1
lea eax, [edx + 2]
mov dword [esp + 0x68], eax
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x572f60
sub edx, dword [esp + 0x68]
lea eax, [ecx + 1]
sar edx, 1
cmp eax, 0x400
jae 0x572fbe
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x400
ja 0x572f9b
push dword [esp + 0x24]
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x572fbe
mov eax, edi
sub eax, ecx
push eax
push dword [esp + 0x28]
mov eax, ebx
sub eax, ecx
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x572fc3
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x400
jae 0x57301f
lea eax, [ecx + 2]
cmp eax, 0x400
ja 0x572ffb
push 0x60f000
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x57301f
mov eax, edi
sub eax, ecx
push eax
mov eax, ebx
sub eax, ecx
push 0x60f000
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x573024
sub ecx, edx
mov edx, dword [esp + 0x20]
sar ecx, 1
lea eax, [edx + 2]
mov dword [esp + 0x68], eax
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x573040
sub edx, dword [esp + 0x68]
lea eax, [ecx + 1]
sar edx, 1
cmp eax, 0x400
jae 0x57309e
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x400
ja 0x57307b
push dword [esp + 0x20]
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x57309e
mov eax, edi
sub eax, ecx
push eax
push dword [esp + 0x24]
mov eax, ebx
sub eax, ecx
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5730a3
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x400
jae 0x5730ff
lea eax, [ecx + 3]
cmp eax, 0x400
ja 0x5730db
push 0x60f004
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x5730ff
mov eax, edi
sub eax, ecx
push eax
mov eax, ebx
sub eax, ecx
push 0x60f004
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x573104
sub ecx, edx
mov edx, dword [esp + 0x18]
sar ecx, 1
lea eax, [edx + 2]
mov dword [esp + 0x68], eax
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x573120
sub edx, dword [esp + 0x68]
lea eax, [ecx + 1]
sar edx, 1
cmp eax, 0x400
jae 0x57317e
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x400
ja 0x57315b
push dword [esp + 0x18]
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x57317e
mov eax, edi
sub eax, ecx
push eax
push dword [esp + 0x1c]
mov eax, ebx
sub eax, ecx
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x573183
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x400
jae 0x5731df
lea eax, [ecx + 2]
cmp eax, 0x400
ja 0x5731bb
push 0x60f00c
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x5731df
mov eax, edi
sub eax, ecx
push eax
mov eax, ebx
sub eax, ecx
push 0x60f00c
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5731e4
sub ecx, edx
mov edx, dword [esp + 0x28]
sar ecx, 1
lea eax, [edx + 2]
mov dword [esp + 0x68], eax
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x573200
sub edx, dword [esp + 0x68]
lea eax, [ecx + 1]
sar edx, 1
cmp eax, 0x400
jae 0x57325e
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x400
ja 0x57323b
push dword [esp + 0x28]
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x57325e
mov eax, edi
sub eax, ecx
push eax
push dword [esp + 0x2c]
mov eax, ebx
sub eax, ecx
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x573263
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x400
jae 0x5732bf
lea eax, [ecx + 3]
cmp eax, 0x400
ja 0x57329b
push 0x60f010
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x5732bf
mov eax, edi
sub eax, ecx
push eax
mov eax, ebx
sub eax, ecx
push 0x60f010
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5732c4
sub ecx, edx
mov edx, dword [esp + 0x1c]
sar ecx, 1
lea eax, [edx + 2]
mov dword [esp + 0x68], eax
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x5732e0
sub edx, dword [esp + 0x68]
lea eax, [ecx + 1]
sar edx, 1
cmp eax, 0x400
jae 0x57333e
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x400
ja 0x57331b
push dword [esp + 0x1c]
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x57333e
mov eax, edi
sub eax, ecx
push eax
push dword [esp + 0x20]
mov eax, ebx
sub eax, ecx
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x573343
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x400
jae 0x57339f
lea eax, [ecx + 2]
cmp eax, 0x400
ja 0x57337b
push 0x60f018
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x57339f
mov eax, edi
sub eax, ecx
push eax
mov eax, ebx
sub eax, ecx
push 0x60f018
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5733a4
sub ecx, edx
mov edx, dword [esp + 0x78]
sar ecx, 1
lea eax, [edx + 2]
mov dword [esp + 0x68], eax
mov edi, edi
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x5733c0
sub edx, dword [esp + 0x68]
lea eax, [ecx + 1]
sar edx, 1
cmp eax, 0x400
jae 0x57341e
lea eax, [ecx + 1]
add eax, edx
cmp eax, 0x400
ja 0x5733fb
push dword [esp + 0x78]
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x57341e
mov eax, edi
sub eax, ecx
push eax
push dword [esp + 0x7c]
mov eax, ebx
sub eax, ecx
push eax
lea eax, [esi + ecx*2]
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x573423
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
cmp eax, 0x400
jae 0x57347b
lea eax, [ecx + 3]
cmp eax, 0x400
ja 0x57345b
push 0x60f01c
push 0x400
push esi
call fcn.0054640f
add esp, 0xc
jmp 0x57347b
sub edi, ecx
push edi
push 0x60f01c
sub ebx, ecx
lea eax, [esi + ecx*2]
push ebx
push eax
call fcn.00543d6d
add esp, 0x10
xor eax, eax
mov word [esi + 0x7fe], ax
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00541b41
mov esp, ebp
pop ebp
ret