Function at 0x40f790
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5c53dc]
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 0x40f7d4
mov ecx, dword [ebp + 0x1c]
push ecx
push eax
call fcn.00489370
add esp, 8
mov dword [ebp - 0x228], eax
jmp 0x40f7de
mov dword [ebp - 0x228], 0
call fcn.0040e810
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
mov eax, dword [esi]
mov dword [ebp - 0x214], eax
test eax, eax
je 0x4104db
cmp byte [ebx], 0
je 0x40f819
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40f804
mov dx, word [0x5a57f8]
mov word [edi], dx
mov edi, dword [ebp + 0x10]
lea eax, [ebx - 1]
cmp edi, 1
je 0x40f840
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f821
mov cx, word [0x5a5c48]
mov word [eax], cx
mov dl, byte [0x5a5c4a]
jmp 0x40f858
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x40f840
mov cx, word [0x5a5c44]
mov word [eax], cx
mov dl, byte [0x5a5c46]
mov byte [eax + 2], dl
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f860
sub eax, edx
add ebx, eax
test edi, edi
jne 0x40f881
test byte [ebp - 0x214], 0x3f
je 0x4104db
jmp 0x410271
cmp edi, 1
jne 0x40f9b8
mov eax, dword [ebp - 0x214]
test eax, 0x800
je 0x40f8bc
push 0x5eae
call fcn.00486120
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f8a6
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40f8b2
jmp 0x40f8ea
test eax, 0x400
je 0x40f9b8
push 0x5eaf
call fcn.00486120
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f8d6
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40f8e2
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 0x40f900
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40f900
mov ax, word [0x5a57f8]
mov ecx, dword [ebp - 0x220]
mov word [edi], ax
movzx edx, word [ecx + 0xf64]
test dx, dx
je 0x40f97c
mov eax, 0xffff
cmp dx, ax
je 0x40f97c
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f932
sub eax, esi
push edx
lea esi, [ebx + eax]
call fcn.0048ad60
push eax
call fcn.00486120
add esp, 8
push eax
push 0x5eb0
call fcn.00486120
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.00551e40
mov esp, ebp
pop ebp
ret
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f981
sub eax, edx
push 0x5eb0
lea esi, [ebx + eax]
call fcn.00486120
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.00551e40
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x214], 0x40000000
mov dword [ebp - 0x21c], 0
je 0x40fb5c
test dword [esi + 4], 0x8000
je 0x40fa69
push 0x5e1a
call fcn.00486120
add esp, 4
mov esi, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40f9f0
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fa00
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 0x40fa69
cmp dword [ebp + 0x14], 0
jne 0x40fa32
mov dword [ebp + 0x14], 1
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fa37
sub eax, edx
lea esi, [ebx + eax]
mov eax, dword [ebp + 0x14]
push eax
push 0x5dec
call fcn.00486120
add esp, 4
push eax
push str.___s_d__
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x40fb23
mov eax, ebx
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fa70
sub eax, edx
push 0x5df0
lea esi, [ebx + eax]
call fcn.00486120
push eax
push 0x5a5c24
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [ebp - 0x218]
add esp, 0x10
test byte [esi + 4], 1
je 0x40fab4
push ebx
push 0x5df1
push 0
call fcn.0040f190
add esp, 0xc
jmp 0x40faba
mov eax, dword [ebp - 0x21c]
test byte [esi + 4], 2
je 0x40facf
push ebx
push 0x5df2
push eax
call fcn.0040f190
add esp, 0xc
test byte [esi + 4], 4
je 0x40fae4
push ebx
push 0x5df3
push eax
call fcn.0040f190
add esp, 0xc
test byte [esi + 4], 8
je 0x40faf9
push ebx
push 0x5df4
push eax
call fcn.0040f190
add esp, 0xc
test byte [esi + 4], 0x10
je 0x40fb0e
push ebx
push 0x5df5
push eax
call fcn.0040f190
add esp, 0xc
test byte [esi + 4], 0x20
je 0x40fb23
push ebx
push 0x5df6
push eax
call fcn.0040f190
add esp, 0xc
push 0x5df7
call fcn.00486120
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40fb32
sub eax, esi
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40fb40
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 0x40fbf7
cmp dword [ebp + 0x10], 1
jne 0x40fb96
mov ecx, dword [esi + 0xc]
push 0
push 1
push ebx
push 0x5dd9
push ecx
call fcn.0040f770
add esp, 4
push eax
call fcn.0040f3d0
add esp, 0x14
jmp 0x40fbf7
mov edx, dword [ebp - 0x220]
mov al, byte [edx + 0x41d]
cmp al, 3
je 0x40fbbd
cmp al, 2
je 0x40fbbd
mov eax, dword [esi + 0xc]
push eax
call fcn.0040f770
lea ecx, [edi + eax]
mov edx, ecx
imul edx, edx, 0x64
jmp 0x40fbd1
mov ecx, dword [esi + 0xc]
push ecx
call fcn.0040f770
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.0040f3d0
add esp, 0x18
test dword [ebp - 0x214], 0x10000000
je 0x40fc35
cmp dword [ebp + 0x10], 1
push 0
push 1
push ebx
push 0x5dda
jne 0x40fc1e
mov ecx, dword [esi + 0x10]
push ecx
call fcn.0040f770
jmp 0x40fc29
mov edx, dword [esi + 0x10]
push edx
call fcn.0040f770
add eax, edi
add esp, 4
push eax
call fcn.0040f3d0
add esp, 0x14
test dword [ebp - 0x214], 0x800000
mov dword [ebp - 0x208], 0
je 0x40fc8d
mov eax, dword [esi + 0x28]
push 0
push 1
push ebx
push 0x5ddb
push eax
call fcn.0040f770
add eax, edi
add esp, 4
push eax
call fcn.0040f3d0
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 0x40fc78
mov dx, word [0x5a5be0]
mov word [edi], dx
mov edi, dword [ebp + 0x14]
test dword [ebp - 0x214], 0x400000
je 0x40fcd8
mov eax, dword [esi + 0x30]
push 0
push 1
push ebx
push 0x5ddd
push eax
call fcn.0040f770
add eax, edi
add esp, 4
push eax
call fcn.0040f3d0
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 0x40fcc6
mov dx, word [0x5a5be0]
mov word [edi], dx
test dword [ebp - 0x214], 0x200000
je 0x40fdfd
cmp byte [ebx], 0
je 0x40fd01
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fcf0
mov ax, word [0x5a57f8]
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 0x40fd94
cmp dword [ebp - 0x21c], 0
je 0x40fd54
lea edi, [ebx - 1]
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fd40
mov dx, word [0x5a5bdc]
mov word [edi], dx
jmp 0x40fd5e
mov dword [ebp - 0x21c], 1
cmp dword [ebp + 0x10], 2
push 0
jne 0x40fd75
mov eax, dword [ebp - 0x220]
push closesocket
push ebx
push eax
jmp 0x40fd82
mov edx, dword [ebp - 0x220]
push closesocket
push ebx
push edx
push ecx
call fcn.0040f770
add esp, 4
push eax
call fcn.0040f3d0
add esp, 0x14
mov eax, 1
add dword [ebp - 0x220], eax
sub dword [ebp - 0x224], eax
jne 0x40fd20
movzx ecx, byte [esi + 0x3d]
test ecx, ecx
je 0x40fdfd
cmp dword [ebp - 0x21c], 0
je 0x40fdd1
lea edi, [ebx - 1]
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fdc0
mov ax, word [0x5a5bdc]
mov word [edi], ax
cmp dword [ebp + 0x10], 2
push 0
jne 0x40fde0
push closesocket
jmp 0x40fde5
push closesocket
push ebx
push 0x5e17
push ecx
call fcn.0040f770
add esp, 4
push eax
call fcn.0040f3d0
add esp, 0x14
test dword [ebp - 0x214], 0x100000
je 0x40fe48
mov ecx, dword [esi + 0x42]
push 0
push 1
push ebx
push 0x5e8d
push ecx
call fcn.0040f770
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f3d0
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 0x40fe37
mov ax, word [0x5a5be0]
mov word [edi], ax
test dword [ebp - 0x214], 0x80000
je 0x40fe9b
mov ecx, dword [esi + 0x4a]
push ecx
call fcn.0040f770
add esp, 4
add eax, dword [ebp + 0x14]
je 0x40fe92
push 0
push 1
push ebx
push 0x5dd8
push eax
call fcn.0040f3d0
add esp, 0x14
lea edi, [ebx - 1]
jmp 0x40fe80
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40fe80
mov dx, word [0x5a5be0]
mov word [edi], dx
mov eax, dword [esi + 0x46]
mov dword [ebp - 0x208], eax
test dword [ebp - 0x214], 0x40000
je 0x40fee6
mov ecx, dword [esi + 0x52]
push 0
push 1
push ebx
push 0x5dde
push ecx
call fcn.0040f770
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f3d0
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 0x40fed5
mov ax, word [0x5a5be0]
mov word [edi], ax
test dword [ebp - 0x214], 0x20000
je 0x40ff31
mov ecx, dword [esi + 0x5a]
push 0
push 1
push ebx
push 0x5ddf
push ecx
call fcn.0040f770
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f3d0
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 0x40ff20
mov ax, word [0x5a5be0]
mov word [edi], ax
test dword [ebp - 0x214], 0x10000
je 0x40ff81
mov ecx, dword [esi + 0x62]
push 0
push 1
push ebx
push 0x5de0
push ecx
call fcn.0040f770
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f3d0
mov edx, dword [esi + 0x5e]
add esp, 0x14
mov dword [ebp - 0x208], edx
lea edi, [ebx - 1]
jmp 0x40ff70
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ff70
mov ax, word [0x5a5be0]
mov word [edi], ax
test dword [ebp - 0x214], 0x4000
je 0x40ffe9
cmp byte [ebx], 0
je 0x40ffa7
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ff95
mov cx, word [0x5a57f8]
mov word [edi], cx
push 0x5dfa
call fcn.00486120
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ffb6
sub eax, esi
lea edi, [ebx - 1]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40ffc2
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 0x410057
cmp byte [ebx], 0
je 0x410012
lea edi, [ebx - 1]
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410000
mov cx, word [0x5a57f8]
mov word [edi], cx
push 0x5eee
call fcn.00486120
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410021
sub eax, esi
lea edi, [ebx - 1]
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410030
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 0x4100dc
mov ecx, dword [esi + 0x72]
push 0
push closesocket
push ebx
push 0x5f1e
push ecx
call fcn.0040f770
add eax, dword [ebp + 0x14]
add esp, 4
push eax
call fcn.0040f3d0
add esp, 0x14
lea edi, [ebx - 1]
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410090
mov dx, word [0x5a57f8]
push 0x5f34
mov word [edi], dx
call fcn.00486120
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4100b1
sub eax, esi
lea edi, [ebx - 1]
lea ecx, [ecx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4100c0
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 0x4101bc
cmp byte [ebx], 0
je 0x410102
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4100f1
mov ax, word [0x5a57f8]
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.0040f3d0
add esp, 0x14
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410121
mov dx, word [0x5a57f8]
push 0x5f25
mov word [edi], dx
call fcn.00486120
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410142
sub eax, esi
lea edi, [ebx - 1]
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410150
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 0x410170
mov ax, word [0x5a57f8]
push 0x5f34
mov word [edi], ax
call fcn.00486120
add esp, 4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410190
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4101a0
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 0x41024b
cmp byte [ebx], 0
je 0x4101e3
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4101d1
mov cx, word [0x5a57f8]
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 0x410220
sub eax, edx
lea edx, [ebp - 0x204]
push edx
push 0x5e8b
lea edi, [ebx + eax]
call fcn.00486120
add esp, 4
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
test byte [ebp - 0x214], 0x3f
je 0x4104db
cmp byte [ebx], 0
je 0x410271
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410260
mov ax, word [0x5a57f8]
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 0x4102d0
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410290
sub eax, edx
push 0x5df7
mov dword [ebp - 0x224], eax
call fcn.00486120
add esp, 4
push eax
push 0x5f54
call fcn.00486120
mov ecx, dword [ebp - 0x224]
add esp, 4
push eax
push str._s_s:
add ecx, ebx
push ecx
jmp 0x4102f8
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4102d0
sub eax, edx
push 0x5df7
mov dword [ebp - 0x224], eax
call fcn.00486120
mov edx, dword [ebp - 0x224]
push eax
push 0x5a5c24
add edx, ebx
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
test byte [ebp - 0x214], 1
je 0x41033a
push ebx
push 0x5df1
push 0
call fcn.0040f190
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 0x410360
push ebx
push 0x5df2
push edi
call fcn.0040f190
mov ecx, dword [esi + 0x82]
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x208], ecx
test byte [ebp - 0x214], 4
je 0x410386
push ebx
push 0x5df3
push edi
call fcn.0040f190
mov edx, dword [esi + 0x9a]
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x208], edx
test byte [ebp - 0x214], 8
je 0x4103ac
push ebx
push 0x5df4
push edi
call fcn.0040f190
mov edi, eax
mov eax, dword [esi + 0xb2]
add esp, 0xc
mov dword [ebp - 0x208], eax
test byte [ebp - 0x214], 0x10
je 0x4103d2
push ebx
push 0x5df5
push edi
call fcn.0040f190
mov ecx, dword [esi + 0x8a]
add esp, 0xc
mov edi, eax
mov dword [ebp - 0x208], ecx
test byte [ebp - 0x214], 0x20
je 0x4103f6
push ebx
push 0x5df6
push edi
call fcn.0040f190
mov edx, dword [esi + 0x92]
add esp, 0xc
mov dword [ebp - 0x208], edx
cmp dword [ebp - 0x21c], 0
je 0x41044d
cmp byte [ebx], 0
je 0x410418
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410407
mov ax, word [0x5a57f8]
mov word [edi], ax
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410420
mov ecx, dword [ebp - 0x21c]
push ecx
sub eax, edx
push 5
push 0x5e91
lea edi, [ebx + eax]
call fcn.00486120
add esp, 4
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp dword [ebp - 0x208], 0
je 0x4104db
cmp byte [ebx], 0
je 0x410474
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410462
mov dx, word [0x5a57f8]
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 0x4104b0
sub eax, edx
lea edi, [ebx + eax]
lea eax, [ebp - 0x204]
push eax
push 0x5e8b
call fcn.00486120
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 0x410c1b
cmp byte [ebx], 0
je 0x410506
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4104f4
mov cx, word [0x5a57f8]
mov word [edi], cx
mov edi, dword [ebp + 0x10]
lea eax, [ebx - 1]
cmp edi, 1
je 0x410530
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410511
mov dx, word [0x5a5c48]
mov word [eax], dx
mov cl, byte [0x5a5c4a]
jmp 0x410548
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x410530
mov dx, word [0x5a5c44]
mov word [eax], dx
mov cl, byte [0x5a5c46]
mov byte [eax + 2], cl
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410550
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.00489390
add esp, 0x14
test edi, edi
jne 0x41059c
test dword [ebp - 0x214], 0x7fff
je 0x410c1b
jmp 0x410691
mov ecx, dword [ebp - 0x214]
xor eax, eax
xor edi, edi
test ecx, ecx
jns 0x410607
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 0x4105d3
push edi
push 0x5295
sub eax, edx
lea esi, [ebx + eax]
call fcn.00486120
add esp, 4
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x20c], 0
jmp 0x410b13
test ecx, 0x20000000
je 0x410647
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 0x410638
push edi
push 0x5296
jmp 0x4105e0
test ecx, 0x10000000
je 0x410669
push ebx
push 0x5297
push 0
call fcn.0040f190
mov ecx, dword [ebp - 0x214]
add esp, 0xc
mov edi, eax
xor eax, eax
test ecx, 0x7fff
je 0x4109fe
cmp byte [ebx], 0
je 0x410691
lea edi, [ebx - 1]
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410680
mov ax, word [0x5a57f8]
mov word [edi], ax
cmp dword [ebp + 0x10], 0
mov eax, ebx
mov dword [ebp - 0x208], 0
lea edx, [eax + 1]
jne 0x4106d5
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4106a6
sub eax, edx
push 0x5df7
lea edi, [ebx + eax]
call fcn.00486120
add esp, 4
push eax
push 0x5f54
call fcn.00486120
add esp, 4
push eax
push str._s_s:
jmp 0x4106f1
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4106d5
sub eax, edx
push 0x5df7
lea edi, [ebx + eax]
call fcn.00486120
push eax
push 0x5a5c24
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x214]
add esp, 0x10
test al, 1
je 0x410731
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 0x410aab
test al, 2
je 0x410761
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 0x410aab
test al, 4
je 0x410791
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 0x410aab
test al, 8
je 0x4107c3
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 0x410aab
test al, 0x10
je 0x4107f5
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 0x410aab
test al, 0x20
je 0x410827
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 0x410aab
test al, 0x40
je 0x410859
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 0x410aab
test al, al
jns 0x41088b
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 0x410aab
test eax, 0x100
je 0x4108c0
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 0x410aab
test eax, 0x200
je 0x4108f5
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 0x410aab
test eax, 0x400
je 0x41092a
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 0x410aab
test eax, 0x800
je 0x41095f
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 0x410aab
test eax, 0x1000
je 0x410994
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 0x410aab
test eax, 0x2000
je 0x4109c7
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 0x410aab
test eax, 0x4000
je 0x410b13
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 0x410aab
test ecx, 0x2000000
je 0x410a3f
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 0x410a30
push ecx
push 0x4c4d33
jmp 0x410a81
test ecx, 0x1000000
je 0x410c1b
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 0x410a74
push ecx
push 0x4c4d32
sub eax, esi
lea esi, [ebx + eax]
call fcn.00486120
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 0x410b13
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410ab0
sub eax, edx
lea edx, [edi + 1]
push edx
lea esi, [ebx + eax]
call fcn.00486120
add esp, 4
push eax
push edi
call fcn.00486120
add esp, 4
push eax
push 0x5a5c14
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp - 0x20c]
add esp, 0x10
test eax, eax
je 0x410aff
push 0
push closesocket
push ebx
push 0
push eax
call fcn.0040f3d0
add esp, 0x14
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410b02
mov ax, word [0x5a5c10]
mov word [edi], ax
cmp dword [ebp - 0x210], 0
je 0x410b92
cmp byte [ebx], 0
je 0x410b3a
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410b28
mov cx, word [0x5a57f8]
mov word [edi], cx
push 0x5df7
call fcn.00486120
add esp, 4
mov esi, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x410b50
sub eax, esi
lea edi, [ebx - 1]
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x410b60
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.0040f3d0
add esp, 0x14
mov eax, dword [ebp - 0x208]
test eax, eax
je 0x410c1b
cmp byte [ebx], 0
je 0x410bbf
lea edi, [ebx - 1]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x410ba8
mov ax, word [0x5a57f8]
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 0x410bf0
sub eax, edx
lea edx, [ebp - 0x204]
push edx
push 0x5e8b
lea esi, [ebx + eax]
call fcn.00486120
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.00551e40
mov esp, ebp
pop ebp
ret