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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xec
cmp byte [0x434300], 0
mov ebx, dword [esp + 0x100]
jne 0x40270c
mov eax, dword [ebx + 0x78]
test al, 0x42
je 0x40270c
and eax, 0x404
mov dword [esp + 0x34], eax
je 0x402720
add esp, 0xec
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
call fcn.00405900
mov eax, dword [ebx + 4]
test eax, eax
je 0x40270c
mov edx, dword [ebx + 0x78]
lea edi, [ebx + 0x78]
mov dword [esp + 0x38], edi
test dh, 4
je 0x402ae0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
xor edi, edi
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
xor ecx, ecx
xor ebp, ebp
xor esi, esi
add esi, dword [ebx + 0x14]
add ecx, dword [ebx + 0x18]
add esi, ebp
add edi, ecx
and edx, 0x800001
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], edi
jne 0x402a60
mov edi, dword [0x435568]
mov byte [esp + 0x54], 0
mov dword [esp + 0x4c], edi
mov edi, dword [0x43556c]
mov dword [esp + 0x44], edi
mov edi, dword [0x43563c]
mov dword [esp + 0x48], edi
mov ebp, dword [esp + 0x44]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp + 8], ebp
mov dword [esp], eax
call sub.libX11_6.dll_XSetWindowBackground
mov eax, dword [0x435800]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XCreatePixmap
mov esi, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call sub.libX11_6.dll_XCreateGC
mov edi, eax
mov eax, dword [0x434304]
mov dword [esp + 8], ebp
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
mov eax, dword [esp + 0x78]
mov dword [esp + 4], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XFillRectangle
mov esi, dword [0x435840]
test esi, esi
je 0x403636
movzx eax, word [ebx + 0x80]
mov ebp, 1
test al, 2
je 0x402907
cmp dword [0x43583c], esi
mov ebp, 1
jae 0x4028f8
xor eax, eax
cmp byte [0x43586b], 2
sete al
add eax, esi
test byte [ebx + 0x79], 4
mov dword [esp + 0x50], eax
je 0x403600
mov eax, dword [esp + 0x50]
mov edx, dword [ebx + 0x14]
mov ebp, 1
sub edx, eax
cmp eax, edx
ja 0x4028f8
movzx eax, word [ebx + 0x80]
test al, 0x10
je 0x4028dd
mov ecx, dword [esp + 0x50]
mov ebp, 2
sub edx, ecx
cmp ecx, edx
ja 0x4028f8
test al, 8
je 0x4028ee
mov ecx, dword [esp + 0x50]
add ebp, 1
sub edx, ecx
cmp ecx, edx
ja 0x4028f8
and eax, 4
cmp ax, 1
sbb ebp, 0xffffffff
test esi, esi
je 0x403662
movzx eax, word [ebx + 0x80]
mov ecx, dword [esp + 0x84]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x50], ecx
add edx, ecx
mov ecx, dword [esp + 0x38]
sub ecx, edx
mov edx, ecx
mov ecx, ebp
imul ecx, esi
sub edx, 5
sub edx, ecx
cmp byte [0x43586b], 2
je 0x402b30
test al, 2
je 0x40294c
cmp dword [0x43583c], esi
mov ebp, edx
jb 0x403420
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], 1
mov dword [esp + 0x20], 1
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], edi
lea esi, [eax - 2]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], esi
sub eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XCopyArea
mov edx, dword [esp + 0x78]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], esi
mov dword [esp + 8], 1
mov eax, edx
mov dword [esp + 0xc], edx
not eax
add eax, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XClearArea
cmp byte [0x43586b], 2
je 0x402c10
mov eax, dword [esp + 0x48]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
test byte [ebx + 0x78], 0x40
mov eax, dword [esp + 0x78]
jne 0x402bd0
movzx eax, byte [ebx + 0x84]
test al, 1
je 0x402a90
test al, 0x12
je 0x4037c2
test al, 0x22
je 0x40379e
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XFreePixmap
mov eax, dword [0x434304]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.libX11_6.dll_XFreeGC
jmp 0x40270c
mov edi, dword [0x435570]
mov byte [esp + 0x54], 1
mov dword [esp + 0x4c], edi
mov edi, dword [0x435574]
mov dword [esp + 0x44], edi
mov edi, dword [0x435644]
mov dword [esp + 0x48], edi
jmp 0x4027b1
test al, 2
je 0x402bcc
test al, 5
je 0x40384e
test al, 9
jne 0x402a2d
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], 0
sub esi, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XDrawLine
jmp 0x402a2d
lea eax, [esp + 0x84]
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x78]
mov dword [esp + 4], eax
lea eax, [esp + 0x80]
mov dword [esp], eax
lea eax, [ebx + 0x78]
call fcn.00402000
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
mov ecx, dword [esp + 0x78]
mov edi, dword [esp + 0x7c]
mov edx, dword [ebx + 0x78]
mov eax, dword [ebx + 4]
jmp 0x402770
test al, 2
jne 0x40428d
cmp byte [ebx + 0x84], 1
mov eax, 4
mov ebp, dword [esp + 0x38]
sbb ecx, ecx
and ecx, 2
cmp byte [ebx + 0x84], 0
mov dword [esp + 0xc], edi
cmovne eax, dword [esp + 0x34]
mov dword [esp + 0x24], ecx
mov esi, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x44], ecx
sub ebp, eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x18], ebp
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XCopyArea
mov edx, dword [esp + 0x78]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ebp
mov dword [esp + 8], esi
sub eax, edx
mov dword [esp + 0xc], edx
sub eax, ecx
mov dword [esp + 0x14], eax
jmp 0x4029ca
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
sub eax, 1
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
sub esi, 1
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XDrawRectangle
jmp 0x402a2d
test byte [ebx + 0x79], 4
mov eax, dword [ebx + 4]
mov dword [esp + 0x40], eax
je 0x4038b2
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov eax, dword [0x435840]
test eax, eax
mov dword [esp + 0x58], eax
je 0x403c3a
mov ebp, dword [esp + 0x90]
mov ecx, dword [ebx + 0x14]
mov eax, dword [esp + 0x94]
mov esi, dword [esp + 0x8c]
add ecx, ebp
add ecx, eax
mov dword [esp + 0x44], ecx
mov ecx, dword [ebx + 0x78]
test cl, 0x40
je 0x403783
mov dword [esp + 0x5c], esi
add esi, dword [esp + 0x88]
mov dword [esp + 0x60], esi
movzx edx, byte [ebx + 0x84]
mov esi, 0
mov byte [esp + 0x48], dl
and edx, 0x12
cmove esi, dword [0x43583c]
and ecx, 0x800001
mov byte [esp + 0x4c], dl
mov dword [esp + 0x50], esi
je 0x40376a
mov esi, dword [0x435640]
mov dword [esp + 0x64], esi
mov esi, dword [0x435644]
mov dword [esp + 0x68], esi
cmp byte [esp + 0x4c], 0
mov word [esp + 0x54], ax
je 0x403721
movzx eax, word [esp + 0x44]
mov word [esp + 0x38], bp
mov esi, 1
mov word [esp + 0x34], ax
xor eax, eax
test byte [esp + 0x48], 9
je 0x40369e
movzx edx, word [esp + 0x34]
mov ecx, dword [esp + 0x60]
sub dx, word [esp + 0x38]
mov word [esp + 0x38], cx
mov word [esp + 0x6e], dx
mov edx, ecx
sub dx, word [esp + 0x5c]
movzx ecx, word [esp + 0x54]
test byte [esp + 0x48], 5
mov word [esp + eax*8 + 0x98], cx
jne 0x40367c
mov ecx, dword [esp + 0x50]
movzx ebp, word [esp + 0x54]
mov word [esp + eax*8 + 0x9a], cx
add cx, word [esp + 0x58]
mov word [esp + eax*8 + 0x9c], bp
mov word [esp + eax*8 + 0x9e], cx
movzx ecx, word [esp + 0x6e]
lea eax, [esi + 1]
mov word [esp + esi*8 + 0x98], bp
mov word [esp + esi*8 + 0x9a], dx
xor ebp, ebp
mov word [esp + esi*8 + 0x9e], dx
xor edx, edx
mov word [esp + esi*8 + 0x9c], cx
xor ecx, ecx
mov word [esp + eax*8 + 0x9c], dx
mov word [esp + eax*8 + 0x98], cx
movzx ecx, word [esp + 0x38]
mov word [esp + eax*8 + 0x9a], bp
mov ebp, 1
lea edx, [ecx - 1]
mov word [esp + eax*8 + 0x9e], dx
lea eax, [esi + 2]
mov edx, 1
add esi, 3
mov word [esp + eax*8 + 0x9a], dx
lea edx, [ecx - 2]
mov word [esp + eax*8 + 0x98], bp
mov ebp, 1
mov word [esp + eax*8 + 0x9c], bp
mov word [esp + eax*8 + 0x9e], dx
cmp byte [esp + 0x4c], 0
jne 0x402e67
movzx ecx, word [esp + 0x34]
mov eax, 1
xor edx, edx
mov word [esp + esi*8 + 0x98], ax
mov word [esp + esi*8 + 0x9a], dx
xor ebp, ebp
mov edx, 1
mov word [esp + esi*8 + 0x9e], bp
mov ebp, 1
lea eax, [ecx - 1]
mov word [esp + esi*8 + 0x9c], ax
lea eax, [esi + 1]
add esi, 2
mov word [esp + eax*8 + 0x98], dx
lea edx, [ecx - 2]
mov word [esp + eax*8 + 0x9a], bp
mov word [esp + eax*8 + 0x9c], dx
mov edx, 1
mov word [esp + eax*8 + 0x9e], dx
mov eax, dword [esp + 0x64]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
lea eax, [esp + 0x98]
mov dword [esp + 0x10], esi
mov dword [esp + 8], edi
mov esi, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XDrawSegments
mov eax, dword [esp + 0x94]
mov dword [esp + 0x4c], eax
add eax, 1
mov word [esp + 0x98], ax
movzx eax, word [esp + 0x88]
lea edx, [eax - 1]
movzx eax, word [esp + 0x34]
sub ax, word [esp + 0x90]
mov word [esp + 0x9a], dx
mov word [esp + 0x9e], dx
lea ebp, [eax - 1]
mov word [esp + 0x54], ax
movzx eax, byte [ebx + 0x84]
mov word [esp + 0x9c], bp
mov ecx, eax
and ecx, 9
mov byte [esp + 0x48], cl
jne 0x402f3a
movzx esi, word [esp + 0x50]
mov word [esp + 0xa0], bp
mov word [esp + 0xa4], bp
mov word [esp + 0xa6], dx
add esi, 1
mov word [esp + 0xa2], si
mov esi, 2
test al, 0x12
jne 0x402f78
movzx ecx, word [esp + 0x4c]
lea edx, [ecx - 1]
movzx ecx, word [0x43583c]
mov word [esp + esi*8 + 0x98], dx
lea edx, [ecx - 1]
movzx ecx, word [esp + 0x54]
mov word [esp + esi*8 + 0x9a], dx
mov word [esp + esi*8 + 0x9e], dx
mov word [esp + esi*8 + 0x9c], cx
add esi, 1
test al, 5
jne 0x402fb2
movzx ecx, word [esp + 0x4c]
movzx edx, word [esp + 0x38]
mov ebp, dword [esp + 0x50]
sub ecx, 1
sub edx, ebp
mov word [esp + esi*8 + 0x9a], bp
mov word [esp + esi*8 + 0x98], cx
mov word [esp + esi*8 + 0x9c], cx
mov word [esp + esi*8 + 0x9e], dx
add esi, 1
cmp byte [esp + 0x48], 0
jne 0x403022
movzx ecx, word [esp + 0x34]
movzx ebp, word [esp + 0x38]
lea edx, [ecx - 1]
xor ecx, ecx
mov word [esp + esi*8 + 0x9a], cx
mov ecx, ebp
mov word [esp + esi*8 + 0x98], dx
mov word [esp + esi*8 + 0x9c], dx
lea edx, [ecx - 1]
movzx ecx, word [esp + 0x34]
mov word [esp + esi*8 + 0x9e], dx
lea edx, [esi + 1]
add esi, 2
mov word [esp + edx*8 + 0x9a], 1
sub ecx, 2
mov word [esp + edx*8 + 0x98], cx
mov word [esp + edx*8 + 0x9c], cx
mov ecx, ebp
sub ecx, 2
mov word [esp + edx*8 + 0x9e], cx
test al, 0x22
jne 0x40308d
movzx ecx, word [esp + 0x38]
xor eax, eax
movzx edx, word [esp + 0x44]
mov word [esp + esi*8 + 0x98], ax
mov eax, ecx
mov word [esp + esi*8 + 0x9c], dx
mov edx, 1
sub eax, 1
mov word [esp + esi*8 + 0x9a], ax
mov word [esp + esi*8 + 0x9e], ax
lea eax, [esi + 1]
add esi, 2
mov word [esp + eax*8 + 0x98], dx
lea edx, [ecx - 2]
movzx ecx, word [esp + 0x34]
mov word [esp + eax*8 + 0x9a], dx
mov word [esp + eax*8 + 0x9e], dx
sub ecx, 1
mov word [esp + eax*8 + 0x9c], cx
mov eax, dword [esp + 0x68]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
lea eax, [esp + 0x98]
mov dword [esp + 0x10], esi
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XDrawSegments
test byte [ebx + 0x80], 0x20
je 0x402a2d
test byte [ebx + 0x78], 0x40
jne 0x402a2d
cmp byte [ebx + 0x84], 0
jne 0x402a2d
xor ebx, ebx
mov ecx, dword [0x43583c]
mov edx, dword [esp + 0x58]
mov word [esp + 0xa0], bx
movzx ebx, word [esp + 0x34]
mov eax, edx
xor edx, edx
mov word [esp + 0x9e], cx
mov word [esp + 0x9a], dx
mov edx, ecx
lea eax, [ecx + eax - 1]
mov esi, ebx
not edx
mov word [esp + 0xa4], cx
sub esi, ecx
mov word [esp + 0x98], ax
mov word [esp + 0x9c], ax
mov word [esp + 0xc8], si
mov word [esp + 0xa8], si
movzx esi, word [esp + 0x44]
mov word [esp + 0xa2], ax
mov word [esp + 0xa6], ax
mov word [esp + 0xaa], ax
mov word [esp + 0xae], ax
mov word [esp + 0xb6], cx
mov word [esp + 0xbc], cx
mov word [esp + 0xc0], ax
mov word [esp + 0xac], si
mov esi, ebx
sub si, word [esp + 0x58]
lea ebx, [esi + edx]
mov ebp, esi
xor esi, esi
mov word [esp + 0xb2], si
xor esi, esi
mov word [esp + 0xb8], si
movzx esi, word [esp + 0x38]
sub si, word [esp + 0x58]
mov word [esp + 0xb0], bx
mov word [esp + 0xb4], bx
add edx, esi
mov word [esp + 0x48], si
movzx esi, word [esp + 0x38]
mov word [esp + 0xba], dx
mov word [esp + 0xbe], dx
sub esi, ecx
mov word [esp + 0xc2], si
mov word [esp + 0xc4], ax
mov ecx, esi
mov eax, dword [esp + 0x60]
mov word [esp + 0xd0], bx
mov word [esp + 0xd4], bx
mov ebx, dword [esp + 0x68]
movzx esi, word [esp + 0x44]
mov dword [esp + 4], edi
mov word [esp + 0xc6], ax
mov word [esp + 0xd6], ax
mov eax, dword [0x434304]
mov dword [esp + 8], ebx
lea ebx, [esp + 0x98]
mov word [esp + 0xca], dx
mov word [esp + 0xce], dx
mov word [esp + 0xd2], cx
mov word [esp + 0xcc], si
xor esi, esi
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
mov dword [esp + 0xc], ebx
mov eax, dword [0x434304]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x10], 8
mov dword [esp + 8], edi
mov dword [esp], eax
mov dword [esp + 4], ebx
xor ebx, ebx
call sub.libX11_6.dll_XDrawSegments
mov word [esp + 0xa0], bx
mov ebx, ebp
movzx ebp, word [esp + 0x34]
mov eax, dword [0x43583c]
xor ecx, ecx
movzx edx, word [esp + 0x58]
mov word [esp + 0x9a], cx
movzx ecx, word [esp + 0x44]
mov word [esp + 0xaa], si
sub ebp, eax
sub ebx, eax
mov word [esp + 0x9e], ax
mov esi, ebp
mov word [esp + 0xb0], bp
xor ebp, ebp
mov word [esp + 0xb8], bp
movzx ebp, word [esp + 0x38]
add edx, eax
mov word [esp + 0xb4], cx
movzx ecx, word [esp + 0x48]
mov word [esp + 0x98], dx
mov word [esp + 0x9c], dx
mov word [esp + 0xa2], dx
mov word [esp + 0xa6], dx
mov word [esp + 0xb2], dx
mov word [esp + 0xb6], dx
sub ebp, eax
mov word [esp + 0xc0], dx
mov word [esp + 0xc4], dx
sub ecx, eax
mov edx, dword [esp + 0x60]
mov word [esp + 0xa4], ax
mov word [esp + 0xae], ax
mov word [esp + 0xbc], ax
mov eax, ebp
mov word [esp + 0xa8], bx
mov word [esp + 0xac], bx
mov word [esp + 0xba], cx
mov word [esp + 0xbe], cx
mov word [esp + 0xc6], dx
mov word [esp + 0xc8], si
mov word [esp + 0xc2], bp
mov word [esp + 0xca], cx
mov word [esp + 0xd2], ax
mov eax, dword [esp + 0x64]
movzx esi, word [esp + 0x44]
mov dword [esp + 4], edi
mov word [esp + 0xd0], bx
mov word [esp + 0xd4], bx
mov dword [esp + 8], eax
mov eax, dword [0x434304]
mov word [esp + 0xce], cx
mov word [esp + 0xd6], dx
mov word [esp + 0xcc], si
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
lea eax, [esp + 0x98]
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x10], 8
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [0x434304]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.libX11_6.dll_XDrawSegments
jmp 0x402a2d
mov dword [esp + 0x58], 0
lea eax, [esi - 2]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 4], edi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.0040c680
mov eax, dword [ebx + 0x6c]
test eax, eax
je 0x403526
cmp byte [eax], 0
je 0x403526
test ebp, ebp
jle 0x403526
mov dword [esp], 0
call fcn.0040c3c0
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x6c]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0040c380
movzx edx, byte [0x435864]
cmp dl, 1
je 0x403c5e
cmp dl, 2
jne 0x403c57
mov edx, ebp
sub edx, eax
mov eax, 0
cmovs edx, eax
mov eax, dword [esp + 0x50]
lea eax, [eax + esi + 1]
lea ecx, [eax + edx]
xor eax, eax
cmp byte [0x43586b], 2
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x14], ebp
mov dword [esp + 4], 0
sete al
sub esi, dword [esp + 0x44]
mov dword [esp + 0x18], edx
lea eax, [ecx + eax*4]
mov dword [esp + 0xc], eax
movzx eax, byte [esp + 0x54]
mov edx, esi
shr edx, 0x1f
add edx, esi
sar edx, 1
add edx, dword [esp + 0x58]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], edx
mov dword [esp], eax
call fcn.0040c440
mov ebp, dword [0x435840]
test ebp, ebp
je 0x403b46
test byte [ebx + 0x79], 4
je 0x403806
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
xor edx, edx
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
xor eax, eax
add eax, dword [ebx + 0x14]
sub eax, ebp
mov esi, eax
mov dword [esp + 0x44], eax
lea eax, [ebp + edx]
cmp esi, eax
mov dword [esp + 0x50], eax
jle 0x4035e5
test dword [ebx + 0x78], 0x800001
je 0x403892
mov eax, dword [0x435564]
mov dword [esp + 0x54], eax
mov eax, dword [0x435640]
mov dword [esp + 0x58], eax
mov eax, dword [0x435644]
mov dword [esp + 0x5c], eax
cmp byte [0x43586b], 2
mov dword [esp + 0x4c], 0
je 0x403a18
movzx eax, word [ebx + 0x80]
test al, 0x10
mov edx, eax
jne 0x4039b6
test dl, 8
jne 0x403ae8
and edx, 4
jne 0x4038e2
movzx eax, byte [0x43586b]
cmp al, 2
je 0x402b38
jmp 0x40294c
lea eax, [esp + 0x98]
lea ecx, [esp + 0x90]
lea edx, [esp + 0x8c]
mov dword [esp + 4], eax
lea eax, [esp + 0x94]
mov dword [esp], eax
lea eax, [ebx + 0x78]
call fcn.00402000
mov esi, dword [0x435840]
jmp 0x4028b1
mov dword [esp], 0
call fcn.0040c3c0
test byte [ebx + 0x80], 2
lea esi, [eax + 4]
mov dword [0x435840], esi
jne 0x402888
mov ebp, 1
jmp 0x4028f8
mov dword [esp], 0
call fcn.0040c3c0
lea esi, [eax + 4]
mov dword [0x435840], esi
jmp 0x402900
movzx ecx, word [esp + 0x6e]
mov word [esp + eax*8 + 0x9a], dx
mov word [esp + eax*8 + 0x9e], dx
mov word [esp + eax*8 + 0x9c], cx
jmp 0x402df7
movzx edx, word [esp + 0x54]
mov ecx, dword [esp + 0x50]
mov word [esp + eax*8 + 0x9c], bp
movzx ebp, word [esp + 0x5c]
mov word [esp + eax*8 + 0x98], dx
mov edx, ecx
add edx, 1
mov word [esp + eax*8 + 0x9a], dx
movzx edx, word [esp + 0x58]
lea edx, [edx + ebp - 1]
mov word [esp + eax*8 + 0x9e], dx
movzx edx, word [esp + 0x34]
sub dx, word [esp + 0x38]
mov word [esp + esi*8 + 0x9a], cx
mov ecx, dword [esp + 0x60]
mov word [esp + esi*8 + 0x98], dx
mov word [esp + esi*8 + 0x9c], dx
mov word [esp + 0x6e], dx
mov edx, ecx
mov word [esp + 0x38], cx
sub edx, ebp
mov word [esp + esi*8 + 0x9e], dx
lea esi, [eax + 3]
add eax, 2
jmp 0x402d2b
mov ecx, dword [esp + 0x44]
mov esi, dword [0x43583c]
mov word [esp + 0x98], ax
mov eax, ebp
mov word [esp + 0x38], bp
not eax
add eax, ecx
mov word [esp + 0x9a], si
mov word [esp + 0x9e], si
mov word [esp + 0x9c], ax
mov word [esp + 0x34], cx
mov esi, 2
mov eax, 1
jmp 0x402d01
mov esi, dword [0x435638]
mov dword [esp + 0x64], esi
mov esi, dword [0x43563c]
mov dword [esp + 0x68], esi
jmp 0x402cdb
mov edx, esi
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x88]
add esi, dword [ebx + 0x18]
add esi, edx
mov dword [esp + 0x60], esi
jmp 0x402c99
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov dword [esp + 0xc], 0
sub eax, 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
jmp 0x402ac3
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XDrawLine
movzx eax, byte [ebx + 0x84]
jmp 0x402a25
lea eax, [esp + 0x94]
lea edx, [esp + 0x88]
lea ecx, [esp + 0x8c]
mov dword [esp + 4], eax
lea eax, [esp + 0x90]
mov dword [esp], eax
lea eax, [ebx + 0x78]
call fcn.00402000
mov edx, dword [esp + 0x90]
cmp dword [esp + 0x94], edx
mov eax, edx
cmovle eax, dword [esp + 0x94]
jmp 0x40356e
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], edi
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XDrawLine
movzx eax, byte [ebx + 0x84]
jmp 0x402aa0
mov eax, dword [0x435560]
mov dword [esp + 0x54], eax
mov eax, dword [0x435638]
mov dword [esp + 0x58], eax
mov eax, dword [0x43563c]
mov dword [esp + 0x5c], eax
jmp 0x4035ad
lea eax, [esp + 0x94]
lea ecx, [esp + 0x8c]
lea edx, [esp + 0x88]
mov dword [esp + 4], eax
lea eax, [esp + 0x90]
mov dword [esp], eax
lea eax, [ebx + 0x78]
call fcn.00402000
jmp 0x402c4d
mov eax, dword [esp + 0x54]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
mov eax, dword [0x434054]
test eax, eax
je 0x403b60
cmp byte [0x43586b], 2
jne 0x40294c
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 8], edi
sub eax, 1
add ebp, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov eax, dword [0x434304]
mov dword [esp + 4], edx
mov dword [esp + 0x18], ebp
mov dword [esp], eax
call sub.libX11_6.dll_XDrawLine
mov ecx, dword [esp + 0x58]
mov eax, dword [0x434304]
mov dword [esp + 4], edi
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x3c]
mov eax, dword [0x434304]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 8], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.libX11_6.dll_XDrawLine
movzx eax, byte [0x43586b]
jmp 0x4035ec
mov eax, dword [esp + 0x54]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
mov eax, dword [0x435840]
test eax, eax
mov dword [esp + 0x60], eax
je 0x404223
mov eax, dword [0x434044]
test eax, eax
je 0x403fa4
cmp byte [0x43586b], 2
je 0x4040d5
sub dword [esp + 0x44], ebp
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x50], eax
jge 0x4035e5
movzx edx, word [ebx + 0x80]
jmp 0x4035d3
xor edx, edx
test byte [ebx + 0x84], 0x12
jne 0x403a2f
mov eax, dword [0x43583c]
lea edx, [eax - 1]
mov dword [esp + 0x4c], edx
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], edi
mov dword [esp + 0x60], edx
mov dword [esp + 8], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], edi
lea eax, [ebp + eax - 1]
add edx, ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XDrawLine
mov edx, dword [esp + 0x58]
mov eax, dword [0x434304]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
mov edx, dword [esp + 0x94]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 8], edi
add edx, ebp
mov dword [esp + 0x10], ecx
mov eax, edx
mov edx, dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XDrawLine
jmp 0x4035c2
mov eax, dword [esp + 0x54]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
cmp byte [ebx + 0x84], 0
je 0x403c78
mov eax, dword [0x43404c]
test eax, eax
je 0x403dfc
cmp byte [0x43586b], 2
je 0x404178
sub dword [esp + 0x44], ebp
mov eax, dword [esp + 0x44]
cmp dword [esp + 0x50], eax
jge 0x4035e5
movzx edx, word [ebx + 0x80]
jmp 0x4035dc
mov dword [esp], 0
call fcn.0040c3c0
lea ebp, [eax + 4]
mov dword [0x435840], ebp
jmp 0x403534
mov ecx, dword [0x435840]
test ecx, ecx
je 0x404240
lea eax, [ecx + 2]
mov esi, dword [esp + 0x44]
mov edx, 0xaaaaaaab
shr ecx, 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mul edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
add esi, ecx
add ecx, dword [esp + 0x4c]
mov dword [esp + 4], edi
mov eax, edx
shr edx, 2
shr eax, 1
sub esi, edx
mov dword [esp + 0x50], edx
add ecx, eax
lea edx, [eax + esi]
sub ecx, dword [esp + 0x50]
mov eax, dword [0x434304]
mov dword [esp + 0x54], edx
mov dword [esp], eax
mov dword [esp + 0x50], ecx
call sub.libX11_6.dll_XSetLineAttributes
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XDrawLine
mov eax, dword [0x434304]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.libX11_6.dll_XSetLineAttributes
jmp 0x403908
mov dword [esp], 0
call fcn.0040c3c0
add eax, 4
mov dword [esp + 0x58], eax
mov dword [0x435840], eax
jmp 0x402c5e
xor edx, edx
jmp 0x4034cb
mov edx, ebp
sub edx, eax
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, 0
sar eax, 1
cmovns edx, eax
jmp 0x4034cb
mov esi, dword [0x435840]
test esi, esi
je 0x40425a
mov eax, dword [0x434048]
test eax, eax
jne 0x403b1b
lea eax, [esi + 2]
mov ecx, 3
xor edx, edx
shr esi, 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
div ecx
mov ecx, esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], edi
add eax, 2
mov esi, eax
shr eax, 1
sub ecx, eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x60], esi
lea edx, [eax + ecx]
add ecx, dword [esp + 0x4c]
add esi, edx
mov word [esp + 0x98], dx
mov word [esp + 0xa0], dx
mov word [esp + 0x9c], si
mov word [esp + 0xa4], si
lea eax, [ecx + 1]
mov word [esp + 0x9a], cx
mov word [esp + 0x9e], cx
mov word [esp + 0xa8], dx
mov word [esp + 0xaa], cx
mov word [esp + 0xa2], ax
mov word [esp + 0xa6], ax
mov eax, dword [esp + 0x60]
mov word [esp + 0xac], dx
mov word [esp + 0xb2], cx
mov word [esp + 0xb8], dx
lea esi, [eax + ecx]
add eax, edx
mov word [esp + 0xb0], ax
mov word [esp + 0xb4], ax
mov word [esp + 0xbc], ax
mov eax, dword [0x434304]
mov word [esp + 0xae], si
mov word [esp + 0xb6], si
mov word [esp + 0xba], si
mov word [esp + 0xbe], si
mov dword [esp], eax
call sub.libX11_6.dll_XSetLineAttributes
mov dword [esp + 0x10], 5
lea eax, [esp + 0x98]
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XDrawSegments
mov eax, dword [0x434304]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.libX11_6.dll_XSetLineAttributes
jmp 0x403b1b
cmp dword [0x435840], 0
je 0x404274
mov esi, dword [0x435840]
mov ecx, 3
xor edx, edx
lea eax, [esi + 2]
div ecx
add eax, 2
mov edx, eax
mov eax, esi
mov esi, dword [esp + 0x44]
shr eax, 1
mov dword [esp + 0x60], edx
shr edx, 1
add esi, eax
add eax, dword [esp + 0x4c]
mov ecx, esi
mov dword [esp + 0x64], esi
sub ecx, edx
mov word [esp + 0x98], cx
mov word [esp + 0xa0], cx
mov dword [esp + 0x68], eax
sub eax, edx
mov word [esp + 0xa8], cx
mov edx, eax
mov word [esp + 0x9a], ax
mov eax, dword [esp + 0x60]
mov word [esp + 0x9e], dx
mov word [esp + 0xaa], dx
mov word [esp + 0xb2], dx
mov word [esp + 0xac], cx
lea esi, [eax + ecx]
lea eax, [edx + 1]
mov word [esp + 0xb8], cx
mov word [esp + 0xc0], cx
mov word [esp + 0xa2], ax
mov word [esp + 0xa6], ax
mov eax, dword [esp + 0x60]
mov word [esp + 0x9c], si
mov word [esp + 0xa4], si
mov word [esp + 0xb0], si
mov word [esp + 0xb4], si
mov word [esp + 0xbc], si
add eax, edx
movzx edx, word [esp + 0x64]
mov esi, dword [esp + 0x68]
mov word [esp + 0xae], ax
mov word [esp + 0xb6], ax
mov word [esp + 0xba], ax
mov word [esp + 0xbe], ax
mov word [esp + 0xc2], si
mov word [esp + 0xc4], dx
mov word [esp + 0xd6], ax
mov edx, esi
mov eax, dword [0x434304]
mov word [esp + 0xc8], cx
add edx, 1
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], eax
mov word [esp + 0xc6], si
mov word [esp + 0xce], dx
mov word [esp + 0xca], dx
mov word [esp + 0xcc], cx
mov word [esp + 0xd0], cx
mov word [esp + 0xd2], si
mov word [esp + 0xd4], cx
call sub.libX11_6.dll_XSetLineAttributes
mov dword [esp + 0x10], 8
jmp 0x403da2
mov eax, dword [esp + 0x60]
mov ecx, 3
xor edx, edx
mov dword [esp + 8], 2
mov dword [esp + 4], edi
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 3
add eax, 2
mov dword [esp + 0xc], 0
mov dword [esp + 0x68], eax
div ecx
mov ecx, dword [esp + 0x60]
xor edx, edx
shr ecx, 1
mov dword [esp + 0x60], ecx
mov ecx, 6
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x68]
div ecx
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
sub ecx, eax
mov eax, ecx
lea ecx, [esi + ecx]
add eax, dword [esp + 0x4c]
add edx, ecx
mov word [esp + 0x98], cx
mov word [esp + 0xa4], cx
mov dword [esp + 0x68], edx
mov word [esp + 0x9c], dx
mov edx, dword [esp + 0x64]
mov dword [esp + 0x60], eax
mov word [esp + 0x9a], ax
add edx, eax
mov eax, edx
mov word [esp + 0x9e], dx
movzx edx, word [esp + 0x68]
mov word [esp + 0xa6], ax
mov eax, dword [0x434304]
mov word [esp + 0xa0], dx
movzx edx, word [esp + 0x60]
mov dword [esp], eax
mov word [esp + 0xa2], dx
call sub.libX11_6.dll_XSetLineAttributes
lea eax, [esp + 0x98]
mov dword [esp + 0x10], 2
mov dword [esp + 8], edi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XDrawSegments
mov eax, dword [0x434304]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.libX11_6.dll_XSetLineAttributes
jmp 0x4039ed
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
mov eax, dword [esp + 0x4c]
lea edx, [esi - 1]
mov dword [esp + 8], edi
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], edx
lea ecx, [eax + ebp]
mov dword [esp + 0x10], eax
mov eax, dword [0x434304]
mov dword [esp + 0x44], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.libX11_6.dll_XDrawLine
mov edx, dword [esp + 0x58]
mov eax, dword [0x434304]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
mov ecx, dword [esp + 0x60]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [0x434304]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.libX11_6.dll_XDrawLine
jmp 0x4039fa
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov eax, dword [0x434304]
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x44]
mov dword [esp + 8], edi
lea edx, [eax + ebp]
mov dword [esp + 0x10], eax
mov eax, dword [0x434304]
sub esi, 1
mov dword [esp + 0x18], edx
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], esi
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.libX11_6.dll_XDrawLine
mov edx, dword [esp + 0x58]
mov eax, dword [0x434304]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [esp], eax
call sub.libX11_6.dll_XSetForeground
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x44]
mov dword [esp + 8], edi
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x3c]
mov eax, dword [0x434304]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.libX11_6.dll_XDrawLine
mov dword [esp + 0x44], esi
jmp 0x403b28
mov dword [esp], 0
call fcn.0040c3c0
add eax, 4
mov dword [esp + 0x60], eax
mov dword [0x435840], eax
jmp 0x4039e0
mov dword [esp], 0
call fcn.0040c3c0
lea ecx, [eax + 4]
mov dword [0x435840], ecx
jmp 0x403b6e
mov dword [esp], 0
call fcn.0040c3c0
lea esi, [eax + 4]
mov dword [0x435840], esi
jmp 0x403c86
mov dword [esp], 0
call fcn.0040c3c0
add eax, 4
mov dword [0x435840], eax
jmp 0x403e09
mov eax, dword [0x43583c]
sub edx, ebp
mov ebp, edx
cmp eax, esi
jae 0x402b38
sub eax, 1
test byte [ebx + 0x84], 0x12
mov edx, 0
cmove edx, eax
mov dword [esp + 0x58], edx
jmp 0x403428