Function at 0x40f9b0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5c43dc]
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 0x40f9f4
mov ecx, dword [ebp + 0x1c]
push ecx
push eax
call fcn.004898d0
add esp, 8
mov dword [ebp - 0x228], eax
jmp 0x40f9fe
mov dword [ebp - 0x228], 0
call fcn.0040eae0
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [esi]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x4106fb
cmp byte [ebx], 0
je 0x40fa39
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fa24
mov dx, word [0x5a47f0]
mov word [edi], dx
mov edi, dword [ebp + 0x10]
lea eax, [ebx - 1]
cmp edi, 1
je 0x40fa60
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40fa41
mov cx, word [0x5a4c40]
mov word [eax], cx
mov dl, byte [0x5a4c42]
jmp 0x40fa78
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40fa60
mov cx, word [0x5a4c3c]
mov word [eax], cx
mov dl, byte [0x5a4c3e]
mov byte [eax + 2], dl
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fa80
sub eax, edx
add ebx, eax
test edi, edi
jne 0x40faa1
test byte [ebp - 0x214], 0x3f
je 0x4106fb
jmp 0x410491
cmp edi, 1
jne 0x40fbd8
mov eax, dword [ebp - 0x214]
test eax, 0x800
je 0x40fadc
push 0x5eae
call fcn.004865f0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fac6
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fad2
jmp 0x40fb0a
test eax, 0x400
je 0x40fbd8
push 0x5eaf
call fcn.004865f0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40faf6
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fb02
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 0x40fb20
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fb20
mov ax, word [0x5a47f0]
mov ecx, dword [ebp - 0x220]
mov word [edi], ax
movzx edx, word [ecx + 0xf64]
test dx, dx
je 0x40fb9c
mov eax, 0xffff
cmp dx, ax
je 0x40fb9c
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fb52
sub eax, esi
push edx
lea esi, [ebx + eax]
call fcn.0048b2b0
push eax
call fcn.004865f0
add esp, 8
push eax
push 0x5eb0
call fcn.004865f0
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.005517d0
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fba1
sub eax, edx
push 0x5eb0
lea esi, [ebx + eax]
call fcn.004865f0
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.005517d0
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x214], 0x40000000
mov dword [ebp - 0x21c], 0
je 0x40fd7c
test dword [esi + 4], 0x8000
je 0x40fc89
push 0x5e1a
call fcn.004865f0
add esp, 4
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fc10
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fc20
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 0x40fc89
cmp dword [ebp + 0x14], 0
jne 0x40fc52
mov dword [ebp + 0x14], 1
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fc57
sub eax, edx
lea esi, [ebx + eax]
mov eax, dword [ebp + 0x14]
push eax
push 0x5dec
call fcn.004865f0
add esp, 4
push eax
push str.___s_d__
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40fd43
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fc90
sub eax, edx
push 0x5df0
lea esi, [ebx + eax]
call fcn.004865f0
push eax
push 0x5a4c1c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [ebp - 0x218]
add esp, 0x10
test byte [esi + 4], 1
je 0x40fcd4
push ebx
push 0x5df1
push 0
call fcn.0040f450
add esp, 0xc
jmp 0x40fcda
mov eax, dword [ebp - 0x21c]
test byte [esi + 4], 2
je 0x40fcef
push ebx
push 0x5df2
push eax
call fcn.0040f450
add esp, 0xc
test byte [esi + 4], 4
je 0x40fd04
push ebx
push 0x5df3
push eax
call fcn.0040f450
add esp, 0xc
test byte [esi + 4], 8
je 0x40fd19
push ebx
push 0x5df4
push eax
call fcn.0040f450
add esp, 0xc
test byte [esi + 4], 0x10
je 0x40fd2e
push ebx
push 0x5df5
push eax
call fcn.0040f450
add esp, 0xc
test byte [esi + 4], 0x20
je 0x40fd43
push ebx
push 0x5df6
push eax
call fcn.0040f450
add esp, 0xc
push 0x5df7
call fcn.004865f0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fd52
sub eax, esi
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fd60
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 0x40fe17
cmp dword [ebp + 0x10], 1
jne 0x40fdb6
mov ecx, dword [esi + 0xc]
push 0
push 1
push ebx
push 0x5dd9
push ecx
call fcn.0040f990
add esp, 4
push eax
call fcn.0040f5f0
add esp, 0x14
jmp 0x40fe17
mov edx, dword [ebp - 0x220]
mov al, byte [edx + 0x41d]
cmp al, 3
je 0x40fddd
cmp al, 2
je 0x40fddd
mov eax, dword [esi + 0xc]
push eax
call fcn.0040f990
lea ecx, [edi + eax]
mov edx, ecx
imul edx, edx, 0x64
jmp 0x40fdf1
mov ecx, dword [esi + 0xc]
push ecx
call fcn.0040f990
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.0040f5f0
add esp, 0x18
test dword [ebp - 0x214], 0x10000000
je 0x40fe55
cmp dword [ebp + 0x10], 1
push 0
push 1
push ebx
push 0x5dda
jne 0x40fe3e
mov ecx, dword [esi + 0x10]
push ecx
call fcn.0040f990
jmp 0x40fe49
mov edx, dword [esi + 0x10]
push edx
call fcn.0040f990
add eax, edi
add esp, 4
push eax
call fcn.0040f5f0
add esp, 0x14
test dword [ebp - 0x214], 0x800000
mov dword [ebp - 0x208], 0
je 0x40fead
mov eax, dword [esi + 0x28]
push 0
push 1
push ebx
push 0x5ddb
push eax
call fcn.0040f990
add eax, edi
add esp, 4
push eax
call fcn.0040f5f0
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 0x40fe98
mov dx, word [0x5a4bd8]
mov word [edi], dx
mov edi, dword [ebp + 0x14]
test dword [ebp - 0x214], 0x400000
je 0x40fef8
mov eax, dword [esi + 0x30]
push 0
push 1
push ebx
push 0x5ddd
push eax
call fcn.0040f990
add eax, edi
add esp, 4
push eax
call fcn.0040f5f0
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 0x40fee6
mov dx, word [0x5a4bd8]
mov word [edi], dx
test dword [ebp - 0x214], 0x200000
je 0x41001d
cmp byte [ebx], 0
je 0x40ff21
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ff10
mov ax, word [0x5a47f0]
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 0x40ffb4
cmp dword [ebp - 0x21c], 0
je 0x40ff74
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ff60
mov dx, word [0x5a4bd4]
mov word [edi], dx
jmp 0x40ff7e
mov dword [ebp - 0x21c], 1
cmp dword [ebp + 0x10], 2
push 0
jne 0x40ff95
mov eax, dword [ebp - 0x220]
push closesocket
push ebx
push eax
jmp 0x40ffa2
mov edx, dword [ebp - 0x220]
push closesocket
push ebx
push edx
push ecx
call fcn.0040f990
add esp, 4
push eax
call fcn.0040f5f0
add esp, 0x14
mov eax, 1
add dword [ebp - 0x220], eax
sub dword [ebp - 0x224], eax
jne 0x40ff40
movzx ecx, byte [esi + 0x3d]
test ecx, ecx
je 0x41001d
cmp dword [ebp - 0x21c], 0
je 0x40fff1
lea edi, [ebx - 1]
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ffe0
mov ax, word [0x5a4bd4]
mov word [edi], ax
cmp dword [ebp + 0x10], 2
push 0
jne 0x410000
push closesocket
jmp 0x410005
push closesocket
push ebx
push 0x5e17
push ecx
call fcn.0040f990
add esp, 4
push eax
call fcn.0040f5f0
add esp, 0x14
test dword [ebp - 0x214], 0x100000
je 0x410068
mov ecx, dword [esi + 0x42]
push 0
push 1
push ebx
push 0x5e8d
push ecx
call fcn.0040f990
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f5f0
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 0x410057
mov ax, word [0x5a4bd8]
mov word [edi], ax
test dword [ebp - 0x214], 0x80000
je 0x4100bb
mov ecx, dword [esi + 0x4a]
push ecx
call fcn.0040f990
add esp, 4
add eax, dword [ebp + 0x14]
je 0x4100b2
push 0
push 1
push ebx
push 0x5dd8
push eax
call fcn.0040f5f0
add esp, 0x14
lea edi, [ebx - 1]
jmp 0x4100a0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4100a0
mov dx, word [0x5a4bd8]
mov word [edi], dx
mov eax, dword [esi + 0x46]
mov dword [ebp - 0x208], eax
test dword [ebp - 0x214], 0x40000
je 0x410106
mov ecx, dword [esi + 0x52]
push 0
push 1
push ebx
push 0x5dde
push ecx
call fcn.0040f990
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f5f0
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 0x4100f5
mov ax, word [0x5a4bd8]
mov word [edi], ax
test dword [ebp - 0x214], 0x20000
je 0x410151
mov ecx, dword [esi + 0x5a]
push 0
push 1
push ebx
push 0x5ddf
push ecx
call fcn.0040f990
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f5f0
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 0x410140
mov ax, word [0x5a4bd8]
mov word [edi], ax
test dword [ebp - 0x214], 0x10000
je 0x4101a1
mov ecx, dword [esi + 0x62]
push 0
push 1
push ebx
push 0x5de0
push ecx
call fcn.0040f990
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f5f0
mov edx, dword [esi + 0x5e]
add esp, 0x14
mov dword [ebp - 0x208], edx
lea edi, [ebx - 1]
jmp 0x410190
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410190
mov ax, word [0x5a4bd8]
mov word [edi], ax
test dword [ebp - 0x214], 0x4000
je 0x410209
cmp byte [ebx], 0
je 0x4101c7
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4101b5
mov cx, word [0x5a47f0]
mov word [edi], cx
push 0x5dfa
call fcn.004865f0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4101d6
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4101e2
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 0x410277
cmp byte [ebx], 0
je 0x410232
lea edi, [ebx - 1]
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410220
mov cx, word [0x5a47f0]
mov word [edi], cx
push 0x5eee
call fcn.004865f0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410241
sub eax, esi
lea edi, [ebx - 1]
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410250
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 0x4102fc
mov ecx, dword [esi + 0x72]
push 0
push closesocket
push ebx
push 0x5f1e
push ecx
call fcn.0040f990
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f5f0
add esp, 0x14
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4102b0
mov dx, word [0x5a47f0]
push 0x5f34
mov word [edi], dx
call fcn.004865f0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4102d1
sub eax, esi
lea edi, [ebx - 1]
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4102e0
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 0x4103dc
cmp byte [ebx], 0
je 0x410322
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410311
mov ax, word [0x5a47f0]
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.0040f5f0
add esp, 0x14
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410341
mov dx, word [0x5a47f0]
push 0x5f25
mov word [edi], dx
call fcn.004865f0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410362
sub eax, esi
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410370
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 0x410390
mov ax, word [0x5a47f0]
push 0x5f34
mov word [edi], ax
call fcn.004865f0
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4103b0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4103c0
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 0x41046b
cmp byte [ebx], 0
je 0x410403
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4103f1
mov cx, word [0x5a47f0]
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.00441780
fstp qword [esp + 4]
add esp, 4
call fcn.004417e0
mov eax, ebx
add esp, 0x10
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410440
sub eax, edx
lea edx, [ebp - 0x204]
push edx
push 0x5e8b
lea edi, [ebx + eax]
call fcn.004865f0
add esp, 4
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test byte [ebp - 0x214], 0x3f
je 0x4106fb
cmp byte [ebx], 0
je 0x410491
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410480
mov ax, word [0x5a47f0]
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 0x4104f0
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4104b0
sub eax, edx
push 0x5df7
mov dword [ebp - 0x224], eax
call fcn.004865f0
add esp, 4
push eax
push 0x5f54
call fcn.004865f0
mov ecx, dword [ebp - 0x224]
add esp, 4
push eax
push str._s_s:
add ecx, ebx
push ecx
jmp 0x410518
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4104f0
sub eax, edx
push 0x5df7
mov dword [ebp - 0x224], eax
call fcn.004865f0
mov edx, dword [ebp - 0x224]
push eax
push 0x5a4c1c
add edx, ebx
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
test byte [ebp - 0x214], 1
je 0x41055a
push ebx
push 0x5df1
push 0
call fcn.0040f450
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 0x410580
push ebx
push 0x5df2
push edi
call fcn.0040f450
mov ecx, dword [esi + 0x82]
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x208], ecx
test byte [ebp - 0x214], 4
je 0x4105a6
push ebx
push 0x5df3
push edi
call fcn.0040f450
mov edx, dword [esi + 0x9a]
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x208], edx
test byte [ebp - 0x214], 8
je 0x4105cc
push ebx
push 0x5df4
push edi
call fcn.0040f450
mov edi, eax
mov eax, dword [esi + 0xb2]
add esp, 0xc
mov dword [ebp - 0x208], eax
test byte [ebp - 0x214], 0x10
je 0x4105f2
push ebx
push 0x5df5
push edi
call fcn.0040f450
mov ecx, dword [esi + 0x8a]
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x208], ecx
test byte [ebp - 0x214], 0x20
je 0x410616
push ebx
push 0x5df6
push edi
call fcn.0040f450
mov edx, dword [esi + 0x92]
add esp, 0xc
mov dword [ebp - 0x208], edx
cmp dword [ebp - 0x21c], 0
je 0x41066d
cmp byte [ebx], 0
je 0x410638
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410627
mov ax, word [0x5a47f0]
mov word [edi], ax
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410640
mov ecx, dword [ebp - 0x21c]
push ecx
sub eax, edx
push 5
push 0x5e91
lea edi, [ebx + eax]
call fcn.004865f0
add esp, 4
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [ebp - 0x208], 0
je 0x4106fb
cmp byte [ebx], 0
je 0x410694
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410682
mov dx, word [0x5a47f0]
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.00441780
fstp qword [esp + 4]
add esp, 4
call fcn.004417e0
mov eax, ebx
add esp, 0x10
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4106d0
sub eax, edx
lea edi, [ebx + eax]
lea eax, [ebp - 0x204]
push eax
push 0x5e8b
call fcn.004865f0
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 0x410e3b
cmp byte [ebx], 0
je 0x410726
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410714
mov cx, word [0x5a47f0]
mov word [edi], cx
mov edi, dword [ebp + 0x10]
lea eax, [ebx - 1]
cmp edi, 1
je 0x410750
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410731
mov dx, word [0x5a4c40]
mov word [eax], dx
mov cl, byte [0x5a4c42]
jmp 0x410768
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410750
mov dx, word [0x5a4c3c]
mov word [eax], dx
mov cl, byte [0x5a4c3e]
mov byte [eax + 2], cl
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410770
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.004898f0
add esp, 0x14
test edi, edi
jne 0x4107bc
test dword [ebp - 0x214], 0x7fff
je 0x410e3b
jmp 0x4108b1
mov ecx, dword [ebp - 0x214]
xor eax, eax
xor edi, edi
test ecx, ecx
jns 0x410827
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 0x4107f3
push edi
push 0x5295
sub eax, edx
lea esi, [ebx + eax]
call fcn.004865f0
add esp, 4
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x20c], 0
jmp 0x410d33
test ecx, 0x20000000
je 0x410867
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 0x410858
push edi
push 0x5296
jmp 0x410800
test ecx, 0x10000000
je 0x410889
push ebx
push 0x5297
push 0
call fcn.0040f450
mov ecx, dword [ebp - 0x214]
add esp, 0xc
mov edi, eax
xor eax, eax
test ecx, 0x7fff
je 0x410c1e
cmp byte [ebx], 0
je 0x4108b1
lea edi, [ebx - 1]
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4108a0
mov ax, word [0x5a47f0]
mov word [edi], ax
cmp dword [ebp + 0x10], 0
mov eax, ebx
mov dword [ebp - 0x208], 0
lea edx, [eax + 1]
jne 0x4108f5
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4108c6
sub eax, edx
push 0x5df7
lea edi, [ebx + eax]
call fcn.004865f0
add esp, 4
push eax
push 0x5f54
call fcn.004865f0
add esp, 4
push eax
push str._s_s:
jmp 0x410911
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4108f5
sub eax, edx
push 0x5df7
lea edi, [ebx + eax]
call fcn.004865f0
push eax
push 0x5a4c1c
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x214]
add esp, 0x10
test al, 1
je 0x410951
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 0x410ccb
test al, 2
je 0x410981
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 0x410ccb
test al, 4
je 0x4109b1
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 0x410ccb
test al, 8
je 0x4109e3
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 0x410ccb
test al, 0x10
je 0x410a15
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 0x410ccb
test al, 0x20
je 0x410a47
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 0x410ccb
test al, 0x40
je 0x410a79
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 0x410ccb
test al, al
jns 0x410aab
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 0x410ccb
test eax, 0x100
je 0x410ae0
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 0x410ccb
test eax, 0x200
je 0x410b15
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 0x410ccb
test eax, 0x400
je 0x410b4a
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 0x410ccb
test eax, 0x800
je 0x410b7f
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 0x410ccb
test eax, 0x1000
je 0x410bb4
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 0x410ccb
test eax, 0x2000
je 0x410be7
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 0x410ccb
test eax, 0x4000
je 0x410d33
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 0x410ccb
test ecx, 0x2000000
je 0x410c5f
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 0x410c50
push ecx
push 0x4c4d33
jmp 0x410ca1
test ecx, 0x1000000
je 0x410e3b
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 0x410c94
push ecx
push 0x4c4d32
sub eax, esi
lea esi, [ebx + eax]
call fcn.004865f0
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 0x410d33
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410cd0
sub eax, edx
lea edx, [edi + 1]
push edx
lea esi, [ebx + eax]
call fcn.004865f0
add esp, 4
push eax
push edi
call fcn.004865f0
add esp, 4
push eax
push 0x5a4c0c
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x20c]
add esp, 0x10
test eax, eax
je 0x410d1f
push 0
push closesocket
push ebx
push 0
push eax
call fcn.0040f5f0
add esp, 0x14
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410d22
mov ax, word [0x5a4c08]
mov word [edi], ax
cmp dword [ebp - 0x210], 0
je 0x410db2
cmp byte [ebx], 0
je 0x410d5a
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410d48
mov cx, word [0x5a47f0]
mov word [edi], cx
push 0x5df7
call fcn.004865f0
add esp, 4
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410d70
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410d80
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.0040f5f0
add esp, 0x14
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x410e3b
cmp byte [ebx], 0
je 0x410ddf
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410dc8
mov ax, word [0x5a47f0]
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.00441780
fstp qword [esp + 4]
add esp, 4
call fcn.004417e0
mov eax, ebx
add esp, 0x10
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410e10
sub eax, edx
lea edx, [ebp - 0x204]
push edx
push 0x5e8b
lea esi, [ebx + eax]
call fcn.004865f0
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.005517d0
mov esp, ebp
pop ebp
ret