Function at 0x40fc00
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5bb204]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x22c], eax
test eax, eax
je 0x40fc44
mov ecx, dword [ebp + 0x1c]
push ecx
push eax
call fcn.00488980
add esp, 8
mov dword [ebp - 0x228], eax
jmp 0x40fc4e
mov dword [ebp - 0x228], 0
call fcn.0040edc0
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [esi]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x41094b
cmp byte [ebx], 0
je 0x40fc89
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fc74
mov dx, word [0x59c7f8]
mov word [edi], dx
mov edi, dword [ebp + 0x10]
lea eax, [ebx - 1]
cmp edi, 1
je 0x40fcb0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40fc91
mov cx, word [0x59cc50]
mov word [eax], cx
mov dl, byte [0x59cc52]
jmp 0x40fcc8
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40fcb0
mov cx, word [0x59cc4c]
mov word [eax], cx
mov dl, byte [0x59cc4e]
mov byte [eax + 2], dl
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fcd0
sub eax, edx
add ebx, eax
test edi, edi
jne 0x40fcf1
test byte [ebp - 0x214], 0x3f
je 0x41094b
jmp 0x4106e1
cmp edi, 1
jne 0x40fe28
mov eax, dword [ebp - 0x214]
test eax, 0x800
je 0x40fd2c
push 0x5eae
call fcn.004856b0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fd16
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fd22
jmp 0x40fd5a
test eax, 0x400
je 0x40fe28
push 0x5eaf
call fcn.004856b0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fd46
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fd52
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
jmp 0x40fd70
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fd70
mov ax, word [0x59c7f8]
mov ecx, dword [ebp - 0x220]
mov word [edi], ax
movzx edx, word [ecx + 0xe16]
test dx, dx
je 0x40fdec
mov eax, 0xffff
cmp dx, ax
je 0x40fdec
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fda2
sub eax, esi
push edx
lea esi, [ebx + eax]
call fcn.0048a360
push eax
call fcn.004856b0
add esp, 8
push eax
push 0x5eb0
call fcn.004856b0
add esp, 4
push eax
push str._s:__s
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00549540
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fdf1
sub eax, edx
push 0x5eb0
lea esi, [ebx + eax]
call fcn.004856b0
push eax
push str._s:____
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00549540
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x214], 0x40000000
mov dword [ebp - 0x21c], 0
je 0x40ffcc
test dword [esi + 4], 0x8000
je 0x40fed9
push 0x5e1a
call fcn.004856b0
add esp, 4
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fe60
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fe70
mov edx, dword [ebp - 0x218]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test dword [edx + 4], 0x8000
je 0x40fed9
cmp dword [ebp + 0x14], 0
jne 0x40fea2
mov dword [ebp + 0x14], 1
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fea7
sub eax, edx
lea esi, [ebx + eax]
mov eax, dword [ebp + 0x14]
push eax
push 0x5dec
call fcn.004856b0
add esp, 4
push eax
push str.___s_d__
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40ff93
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fee0
sub eax, edx
push 0x5df0
lea esi, [ebx + eax]
call fcn.004856b0
push eax
push 0x59cc2c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [ebp - 0x218]
add esp, 0x10
test byte [esi + 4], 1
je 0x40ff24
push ebx
push 0x5df1
push 0
call fcn.0040f730
add esp, 0xc
jmp 0x40ff2a
mov eax, dword [ebp - 0x21c]
test byte [esi + 4], 2
je 0x40ff3f
push ebx
push 0x5df2
push eax
call fcn.0040f730
add esp, 0xc
test byte [esi + 4], 4
je 0x40ff54
push ebx
push 0x5df3
push eax
call fcn.0040f730
add esp, 0xc
test byte [esi + 4], 8
je 0x40ff69
push ebx
push 0x5df4
push eax
call fcn.0040f730
add esp, 0xc
test byte [esi + 4], 0x10
je 0x40ff7e
push ebx
push 0x5df5
push eax
call fcn.0040f730
add esp, 0xc
test byte [esi + 4], 0x20
je 0x40ff93
push ebx
push 0x5df6
push eax
call fcn.0040f730
add esp, 0xc
push 0x5df7
call fcn.004856b0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ffa2
sub eax, esi
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40ffb0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x218]
test dword [ebp - 0x214], 0x20000000
mov edi, dword [ebp + 0x14]
je 0x410067
cmp dword [ebp + 0x10], 1
jne 0x410006
mov ecx, dword [esi + 0xc]
push 0
push 1
push ebx
push 0x5dd9
push ecx
call fcn.0040fbe0
add esp, 4
push eax
call fcn.0040f8d0
add esp, 0x14
jmp 0x410067
mov edx, dword [ebp - 0x220]
mov al, byte [edx + 0x3cd]
cmp al, 3
je 0x41002d
cmp al, 2
je 0x41002d
mov eax, dword [esi + 0xc]
push eax
call fcn.0040fbe0
lea ecx, [edi + eax]
mov edx, ecx
imul edx, edx, 0x64
jmp 0x410041
mov ecx, dword [esi + 0xc]
push ecx
call fcn.0040fbe0
lea ecx, [edi + eax]
mov edx, ecx
imul edx, edx, 0xc8
mov eax, 0x51eb851f
imul edx
sar edx, 5
push 0
mov eax, edx
push 1
shr eax, 0x1f
push ebx
add eax, edx
add eax, ecx
push 0x5dd9
push eax
call fcn.0040f8d0
add esp, 0x18
test dword [ebp - 0x214], 0x10000000
je 0x4100a5
cmp dword [ebp + 0x10], 1
push 0
push 1
push ebx
push 0x5dda
jne 0x41008e
mov ecx, dword [esi + 0x10]
push ecx
call fcn.0040fbe0
jmp 0x410099
mov edx, dword [esi + 0x10]
push edx
call fcn.0040fbe0
add eax, edi
add esp, 4
push eax
call fcn.0040f8d0
add esp, 0x14
test dword [ebp - 0x214], 0x800000
mov dword [ebp - 0x208], 0
je 0x4100fd
mov eax, dword [esi + 0x28]
push 0
push 1
push ebx
push 0x5ddb
push eax
call fcn.0040fbe0
add eax, edi
add esp, 4
push eax
call fcn.0040f8d0
mov ecx, dword [esi + 0x24]
add esp, 0x14
mov dword [ebp - 0x208], ecx
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4100e8
mov dx, word [0x59cbe8]
mov word [edi], dx
mov edi, dword [ebp + 0x14]
test dword [ebp - 0x214], 0x400000
je 0x410148
mov eax, dword [esi + 0x30]
push 0
push 1
push ebx
push 0x5ddd
push eax
call fcn.0040fbe0
add eax, edi
add esp, 4
push eax
call fcn.0040f8d0
mov ecx, dword [esi + 0x2c]
add esp, 0x14
mov dword [ebp - 0x208], ecx
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410136
mov dx, word [0x59cbe8]
mov word [edi], dx
test dword [ebp - 0x214], 0x200000
je 0x41026d
cmp byte [ebx], 0
je 0x410171
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410160
mov ax, word [0x59c7f8]
mov word [edi], ax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0x5de2
mov dword [ebp - 0x224], 8
nop
mov ecx, dword [ebp - 0x220]
movzx ecx, byte [esi + ecx - 0x5dad]
test ecx, ecx
je 0x410204
cmp dword [ebp - 0x21c], 0
je 0x4101c4
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4101b0
mov dx, word [0x59cbe4]
mov word [edi], dx
jmp 0x4101ce
mov dword [ebp - 0x21c], 1
cmp dword [ebp + 0x10], 2
push 0
jne 0x4101e5
mov eax, dword [ebp - 0x220]
push closesocket
push ebx
push eax
jmp 0x4101f2
mov edx, dword [ebp - 0x220]
push closesocket
push ebx
push edx
push ecx
call fcn.0040fbe0
add esp, 4
push eax
call fcn.0040f8d0
add esp, 0x14
mov eax, 1
add dword [ebp - 0x220], eax
sub dword [ebp - 0x224], eax
jne 0x410190
movzx ecx, byte [esi + 0x3d]
test ecx, ecx
je 0x41026d
cmp dword [ebp - 0x21c], 0
je 0x410241
lea edi, [ebx - 1]
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410230
mov ax, word [0x59cbe4]
mov word [edi], ax
cmp dword [ebp + 0x10], 2
push 0
jne 0x410250
push closesocket
jmp 0x410255
push closesocket
push ebx
push 0x5e17
push ecx
call fcn.0040fbe0
add esp, 4
push eax
call fcn.0040f8d0
add esp, 0x14
test dword [ebp - 0x214], 0x100000
je 0x4102b8
mov ecx, dword [esi + 0x42]
push 0
push 1
push ebx
push 0x5e8d
push ecx
call fcn.0040fbe0
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f8d0
mov edx, dword [esi + 0x3e]
add esp, 0x14
mov dword [ebp - 0x208], edx
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4102a7
mov ax, word [0x59cbe8]
mov word [edi], ax
test dword [ebp - 0x214], 0x80000
je 0x41030b
mov ecx, dword [esi + 0x4a]
push ecx
call fcn.0040fbe0
add esp, 4
add eax, dword [ebp + 0x14]
je 0x410302
push 0
push 1
push ebx
push 0x5dd8
push eax
call fcn.0040f8d0
add esp, 0x14
lea edi, [ebx - 1]
jmp 0x4102f0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4102f0
mov dx, word [0x59cbe8]
mov word [edi], dx
mov eax, dword [esi + 0x46]
mov dword [ebp - 0x208], eax
test dword [ebp - 0x214], 0x40000
je 0x410356
mov ecx, dword [esi + 0x52]
push 0
push 1
push ebx
push 0x5dde
push ecx
call fcn.0040fbe0
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f8d0
mov edx, dword [esi + 0x4e]
add esp, 0x14
mov dword [ebp - 0x208], edx
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410345
mov ax, word [0x59cbe8]
mov word [edi], ax
test dword [ebp - 0x214], 0x20000
je 0x4103a1
mov ecx, dword [esi + 0x5a]
push 0
push 1
push ebx
push 0x5ddf
push ecx
call fcn.0040fbe0
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f8d0
mov edx, dword [esi + 0x56]
add esp, 0x14
mov dword [ebp - 0x208], edx
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410390
mov ax, word [0x59cbe8]
mov word [edi], ax
test dword [ebp - 0x214], 0x10000
je 0x4103f1
mov ecx, dword [esi + 0x62]
push 0
push 1
push ebx
push 0x5de0
push ecx
call fcn.0040fbe0
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f8d0
mov edx, dword [esi + 0x5e]
add esp, 0x14
mov dword [ebp - 0x208], edx
lea edi, [ebx - 1]
jmp 0x4103e0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4103e0
mov ax, word [0x59cbe8]
mov word [edi], ax
test dword [ebp - 0x214], 0x4000
je 0x410459
cmp byte [ebx], 0
je 0x410417
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410405
mov cx, word [0x59c7f8]
mov word [edi], cx
push 0x5dfa
call fcn.004856b0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410426
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410432
mov edx, dword [ebp - 0x218]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 0x66]
mov dword [ebp - 0x208], eax
mov esi, edx
test dword [ebp - 0x214], 0x2000
je 0x4104c7
cmp byte [ebx], 0
je 0x410482
lea edi, [ebx - 1]
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410470
mov cx, word [0x59c7f8]
mov word [edi], cx
push 0x5eee
call fcn.004856b0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410491
sub eax, esi
lea edi, [ebx - 1]
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4104a0
mov edx, dword [ebp - 0x218]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [edx + 0x20]
mov dword [ebp - 0x208], eax
mov esi, edx
test byte [ebp - 0x214], 0x80
je 0x41054c
mov ecx, dword [esi + 0x72]
push 0
push closesocket
push ebx
push 0x5f1e
push ecx
call fcn.0040fbe0
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f8d0
add esp, 0x14
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410500
mov dx, word [0x59c7f8]
push 0x5f34
mov word [edi], dx
call fcn.004856b0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410521
sub eax, esi
lea edi, [ebx - 1]
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410530
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x218]
test byte [ebp - 0x214], 0x40
je 0x41062c
cmp byte [ebx], 0
je 0x410572
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410561
mov ax, word [0x59c7f8]
mov word [edi], ax
mov ecx, dword [esi + 0x76]
add ecx, dword [ebp + 0x14]
push 0
push closesocket
push ebx
push 0x5dd9
push ecx
call fcn.0040f8d0
add esp, 0x14
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410591
mov dx, word [0x59c7f8]
push 0x5f25
mov word [edi], dx
call fcn.004856b0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4105b2
sub eax, esi
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4105c0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4105e0
mov ax, word [0x59c7f8]
push 0x5f34
mov word [edi], ax
call fcn.004856b0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410600
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410610
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x218]
cmp dword [ebp - 0x208], 0
je 0x4106bb
cmp byte [ebx], 0
je 0x410653
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410641
mov cx, word [0x59c7f8]
mov word [edi], cx
mov ecx, dword [ebp - 0x208]
add ecx, dword [ebp - 0x228]
push 0
lea edx, [ebp - 0x204]
push edx
push 1
push 0x3e8
push ecx
call fcn.00440f20
fstp qword [esp + 4]
add esp, 4
call fcn.00440f90
mov eax, ebx
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410690
sub eax, edx
lea edx, [ebp - 0x204]
push edx
push 0x5e8b
lea edi, [ebx + eax]
call fcn.004856b0
add esp, 4
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test byte [ebp - 0x214], 0x3f
je 0x41094b
cmp byte [ebx], 0
je 0x4106e1
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4106d0
mov ax, word [0x59c7f8]
mov word [edi], ax
xor edi, edi
mov eax, ebx
mov dword [ebp - 0x208], edi
mov dword [ebp - 0x21c], edi
lea edx, [eax + 1]
cmp dword [ebp + 0x10], edi
jne 0x410740
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410700
sub eax, edx
push 0x5df7
mov dword [ebp - 0x224], eax
call fcn.004856b0
add esp, 4
push eax
push 0x5f54
call fcn.004856b0
mov ecx, dword [ebp - 0x224]
add esp, 4
push eax
push str._s_s:
add ecx, ebx
push ecx
jmp 0x410768
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410740
sub eax, edx
push 0x5df7
mov dword [ebp - 0x224], eax
call fcn.004856b0
mov edx, dword [ebp - 0x224]
push eax
push 0x59cc2c
add edx, ebx
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
test byte [ebp - 0x214], 1
je 0x4107aa
push ebx
push 0x5df1
push 0
call fcn.0040f730
mov edi, eax
mov eax, dword [esi + 0xa6]
mov dword [ebp - 0x208], eax
movzx eax, word [esi + 0xaa]
lea eax, [eax + eax*4]
add esp, 0xc
add eax, eax
mov dword [ebp - 0x21c], eax
test byte [ebp - 0x214], 2
je 0x4107d0
push ebx
push 0x5df2
push edi
call fcn.0040f730
mov ecx, dword [esi + 0x82]
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x208], ecx
test byte [ebp - 0x214], 4
je 0x4107f6
push ebx
push 0x5df3
push edi
call fcn.0040f730
mov edx, dword [esi + 0x9a]
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x208], edx
test byte [ebp - 0x214], 8
je 0x41081c
push ebx
push 0x5df4
push edi
call fcn.0040f730
mov edi, eax
mov eax, dword [esi + 0xb2]
add esp, 0xc
mov dword [ebp - 0x208], eax
test byte [ebp - 0x214], 0x10
je 0x410842
push ebx
push 0x5df5
push edi
call fcn.0040f730
mov ecx, dword [esi + 0x8a]
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x208], ecx
test byte [ebp - 0x214], 0x20
je 0x410866
push ebx
push 0x5df6
push edi
call fcn.0040f730
mov edx, dword [esi + 0x92]
add esp, 0xc
mov dword [ebp - 0x208], edx
cmp dword [ebp - 0x21c], 0
je 0x4108bd
cmp byte [ebx], 0
je 0x410888
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410877
mov ax, word [0x59c7f8]
mov word [edi], ax
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410890
mov ecx, dword [ebp - 0x21c]
push ecx
sub eax, edx
push 5
push 0x5e91
lea edi, [ebx + eax]
call fcn.004856b0
add esp, 4
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [ebp - 0x208], 0
je 0x41094b
cmp byte [ebx], 0
je 0x4108e4
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4108d2
mov dx, word [0x59c7f8]
mov word [edi], dx
mov edx, dword [ebp - 0x208]
add edx, dword [ebp - 0x228]
push 0
lea eax, [ebp - 0x204]
push eax
push 1
push 0x3e8
push edx
call fcn.00440f20
fstp qword [esp + 4]
add esp, 4
call fcn.00440f90
mov eax, ebx
add esp, 0x10
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410920
sub eax, edx
lea edi, [ebx + eax]
lea eax, [ebp - 0x204]
push eax
push 0x5e8b
call fcn.004856b0
add esp, 4
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [esi + 8]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x41108b
cmp byte [ebx], 0
je 0x410976
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410964
mov cx, word [0x59c7f8]
mov word [edi], cx
mov edi, dword [ebp + 0x10]
lea eax, [ebx - 1]
cmp edi, 1
je 0x4109a0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410981
mov dx, word [0x59cc50]
mov word [eax], dx
mov cl, byte [0x59cc52]
jmp 0x4109b8
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4109a0
mov dx, word [0x59cc4c]
mov word [eax], dx
mov cl, byte [0x59cc4e]
mov byte [eax + 2], cl
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4109c0
sub eax, edx
add ebx, eax
lea edx, [ebp - 0x230]
push edx
mov edx, dword [ebp + 0x1c]
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp - 0x22c]
lea ecx, [ebp - 0x210]
push ecx
push edx
push eax
call fcn.004889a0
add esp, 0x14
test edi, edi
jne 0x410a0c
test dword [ebp - 0x214], 0x7fff
je 0x41108b
jmp 0x410b01
mov ecx, dword [ebp - 0x214]
xor eax, eax
xor edi, edi
test ecx, ecx
jns 0x410a77
mov edi, dword [ebp - 0x20c]
add edi, dword [esi + 0xc2]
mov ecx, dword [esi + 0xbe]
mov dword [ebp - 0x210], eax
mov eax, ebx
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410a43
push edi
push 0x5295
sub eax, edx
lea esi, [ebx + eax]
call fcn.004856b0
add esp, 4
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x20c], 0
jmp 0x410f83
test ecx, 0x20000000
je 0x410ab7
mov edi, dword [ebp - 0x20c]
mov edx, dword [esi + 0xc6]
add edi, dword [esi + 0xca]
mov dword [ebp - 0x210], eax
mov eax, ebx
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x20c], edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410aa8
push edi
push 0x5296
jmp 0x410a50
test ecx, 0x10000000
je 0x410ad9
push ebx
push 0x5297
push 0
call fcn.0040f730
mov ecx, dword [ebp - 0x214]
add esp, 0xc
mov edi, eax
xor eax, eax
test ecx, 0x7fff
je 0x410e6e
cmp byte [ebx], 0
je 0x410b01
lea edi, [ebx - 1]
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410af0
mov ax, word [0x59c7f8]
mov word [edi], ax
cmp dword [ebp + 0x10], 0
mov eax, ebx
mov dword [ebp - 0x208], 0
lea edx, [eax + 1]
jne 0x410b45
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410b16
sub eax, edx
push 0x5df7
lea edi, [ebx + eax]
call fcn.004856b0
add esp, 4
push eax
push 0x5f54
call fcn.004856b0
add esp, 4
push eax
push str._s_s:
jmp 0x410b61
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410b45
sub eax, edx
push 0x5df7
lea edi, [ebx + eax]
call fcn.004856b0
push eax
push 0x59cc2c
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x214]
add esp, 0x10
test al, 1
je 0x410ba1
mov ecx, dword [esi + 0xe2]
mov edx, dword [esi + 0xde]
add dword [ebp - 0x210], edx
mov edi, 0x5277
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], 0
jmp 0x410f1b
test al, 2
je 0x410bd1
mov eax, dword [esi + 0xea]
mov ecx, dword [esi + 0xe6]
add dword [ebp - 0x210], ecx
mov edi, 0x5279
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], 0
jmp 0x410f1b
test al, 4
je 0x410c01
mov edx, dword [esi + 0xf2]
mov eax, dword [esi + 0xee]
add dword [ebp - 0x210], eax
mov edi, 0x527b
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x20c], 0
jmp 0x410f1b
test al, 8
je 0x410c33
mov edx, dword [esi + 0x106]
mov ecx, dword [esi + 0x10a]
mov eax, dword [esi + 0x10e]
add dword [ebp - 0x210], edx
add dword [ebp - 0x20c], eax
mov edi, 0x527d
mov dword [ebp - 0x208], ecx
jmp 0x410f1b
test al, 0x10
je 0x410c65
mov edx, dword [esi + 0x112]
mov ecx, dword [esi + 0x116]
mov eax, dword [esi + 0x11a]
add dword [ebp - 0x210], edx
add dword [ebp - 0x20c], eax
mov edi, 0x527f
mov dword [ebp - 0x208], ecx
jmp 0x410f1b
test al, 0x20
je 0x410c97
mov edx, dword [esi + 0x11e]
mov ecx, dword [esi + 0x122]
mov eax, dword [esi + 0x126]
add dword [ebp - 0x210], edx
add dword [ebp - 0x20c], eax
mov edi, 0x5281
mov dword [ebp - 0x208], ecx
jmp 0x410f1b
test al, 0x40
je 0x410cc9
mov edx, dword [esi + 0x12a]
mov ecx, dword [esi + 0x12e]
mov eax, dword [esi + 0x132]
add dword [ebp - 0x210], edx
add dword [ebp - 0x20c], eax
mov edi, 0x5283
mov dword [ebp - 0x208], ecx
jmp 0x410f1b
test al, al
jns 0x410cfb
mov edx, dword [esi + 0x136]
mov ecx, dword [esi + 0x13a]
mov eax, dword [esi + 0x13e]
add dword [ebp - 0x210], edx
add dword [ebp - 0x20c], eax
mov edi, 0x5285
mov dword [ebp - 0x208], ecx
jmp 0x410f1b
test eax, 0x100
je 0x410d30
mov edx, dword [esi + 0x142]
mov ecx, dword [esi + 0x146]
mov eax, dword [esi + 0x14a]
add dword [ebp - 0x210], edx
add dword [ebp - 0x20c], eax
mov edi, 0x5287
mov dword [ebp - 0x208], ecx
jmp 0x410f1b
test eax, 0x200
je 0x410d65
mov edx, dword [esi + 0x14e]
mov ecx, dword [esi + 0x152]
mov eax, dword [esi + 0x156]
add dword [ebp - 0x210], edx
add dword [ebp - 0x20c], eax
mov edi, 0x5289
mov dword [ebp - 0x208], ecx
jmp 0x410f1b
test eax, 0x400
je 0x410d9a
mov edx, dword [esi + 0x15a]
mov ecx, dword [esi + 0x15e]
mov eax, dword [esi + 0x162]
add dword [ebp - 0x210], edx
add dword [ebp - 0x20c], eax
mov edi, 0x528b
mov dword [ebp - 0x208], ecx
jmp 0x410f1b
test eax, 0x800
je 0x410dcf
mov edx, dword [esi + 0x166]
mov ecx, dword [esi + 0x16a]
mov eax, dword [esi + 0x16e]
add dword [ebp - 0x210], edx
add dword [ebp - 0x20c], eax
mov edi, 0x528d
mov dword [ebp - 0x208], ecx
jmp 0x410f1b
test eax, 0x1000
je 0x410e04
mov edx, dword [esi + 0x172]
mov ecx, dword [esi + 0x176]
mov eax, dword [esi + 0x17a]
add dword [ebp - 0x210], edx
add dword [ebp - 0x20c], eax
mov edi, 0x528f
mov dword [ebp - 0x208], ecx
jmp 0x410f1b
test eax, 0x2000
je 0x410e37
mov ecx, dword [esi + 0xfa]
mov edx, dword [esi + 0xf6]
add dword [ebp - 0x210], edx
mov edi, 0x5291
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], 0
jmp 0x410f1b
test eax, 0x4000
je 0x410f83
mov eax, dword [esi + 0x102]
mov ecx, dword [esi + 0xfe]
add dword [ebp - 0x210], ecx
mov edi, 0x5293
mov dword [ebp - 0x208], eax
mov dword [ebp - 0x20c], 0
jmp 0x410f1b
test ecx, 0x2000000
je 0x410eaf
mov ecx, dword [ebp - 0x20c]
add ecx, dword [esi + 0xd2]
mov edx, dword [esi + 0xce]
mov dword [ebp - 0x210], eax
mov eax, ebx
mov dword [ebp - 0x208], edx
mov dword [ebp - 0x20c], ecx
lea esi, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410ea0
push ecx
push 0x4c4d33
jmp 0x410ef1
test ecx, 0x1000000
je 0x41108b
mov ecx, dword [esi + 0xd6]
mov dword [ebp - 0x208], ecx
mov ecx, dword [ebp - 0x20c]
add ecx, dword [esi + 0xda]
mov dword [ebp - 0x210], eax
mov eax, ebx
mov dword [ebp - 0x20c], ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x410ee4
push ecx
push 0x4c4d32
sub eax, esi
lea esi, [ebx + eax]
call fcn.004856b0
add esp, 4
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x20c], 0
test edi, edi
je 0x410f83
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410f20
sub eax, edx
lea edx, [edi + 1]
push edx
lea esi, [ebx + eax]
call fcn.004856b0
add esp, 4
push eax
push edi
call fcn.004856b0
add esp, 4
push eax
push 0x59cc1c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x20c]
add esp, 0x10
test eax, eax
je 0x410f6f
push 0
push closesocket
push ebx
push 0
push eax
call fcn.0040f8d0
add esp, 0x14
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410f72
mov ax, word [0x59cc18]
mov word [edi], ax
cmp dword [ebp - 0x210], 0
je 0x411002
cmp byte [ebx], 0
je 0x410faa
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410f98
mov cx, word [0x59c7f8]
mov word [edi], cx
push 0x5df7
call fcn.004856b0
add esp, 4
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410fc0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410fd0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
mov ecx, eax
push closesocket
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp - 0x210]
push 0x5ddf
push edx
call fcn.0040f8d0
add esp, 0x14
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x41108b
cmp byte [ebx], 0
je 0x41102f
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x411018
mov ax, word [0x59c7f8]
mov word [edi], ax
mov eax, dword [ebp - 0x208]
add eax, dword [ebp - 0x230]
push 0
lea ecx, [ebp - 0x204]
push ecx
push 1
push 0x3e8
push eax
call fcn.00440f20
fstp qword [esp + 4]
add esp, 4
call fcn.00440f90
mov eax, ebx
add esp, 0x10
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411060
sub eax, edx
lea edx, [ebp - 0x204]
push edx
push 0x5e8b
lea esi, [ebx + eax]
call fcn.004856b0
add esp, 4
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00549540
mov esp, ebp
pop ebp
ret