Function at 0x404710
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov ebp, dword [esp + 0xd4]
mov ebx, dword [esp + 0xd0]
test ebp, ebp
je 0x404850
lea eax, [ebp + 8]
lea esi, [ebx + 0x34]
mov dword [ebp], 0
mov dword [ebp + 4], 0
mov dword [ebp + 0x10], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x34]
cmp eax, esi
je 0x404850
mov dword [esp], eax
call fcn.004091d0
mov edi, eax
mov dword [eax + 0xf0], 0
mov eax, dword [eax + 0x24]
cmp eax, 5
je 0x4047e0
ja 0x4047b0
cmp eax, 3
jb 0x40474f
mov dword [esp], edi
call fcn.00401960
mov eax, dword [edi + 0x178]
mov dword [edi + 0x24], 5
mov dword [ebp], 1
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], eax
mov eax, 1
add esp, 0xbc
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 9
jne 0x40474f
mov dword [ebx + 0x20], 1
mov eax, dword [edi + 0x178]
mov dword [ebp], 2
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], eax
mov dword [esp], edi
call fcn.004019c0
jmp 0x40479f
lea edx, [edi + 0xe8]
cmp dword [edi + 0xe8], edx
mov dword [esp + 0x2c], edx
je 0x40474f
mov eax, dword [esp + 0x28]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004015e0
test eax, eax
mov dword [ebp + 0x10], eax
je 0x40474f
mov edx, dword [esp + 0x2c]
cmp dword [edi + 0xe8], edx
mov dword [ebp], 3
mov dword [ebp + 4], edi
je 0x40479f
mov dword [edi + 0xf0], 1
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004091b0
jmp 0x40479f
call fcn.00406f80
mov ecx, dword [esp + 0xd8]
lea edx, [ebx + 0x1870]
mov dword [esp + 0xd4], ebp
mov dword [ebx + 0x30], eax
mov ebp, ebx
mov ebx, dword [esp + 0xd4]
and edx, 0xfffffffc
add ecx, eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x34], ecx
mov edx, dword [ebp + 0x14]
mov ecx, eax
sub ecx, edx
cmp ecx, 0x5265bff
jbe 0x404ba0
sub edx, eax
cmp edx, 0x3e7
seta al
test al, al
jne 0x404bb1
mov ecx, 1
mov edx, ebx
mov eax, ebp
call fcn.00403ac0
cmp eax, 0xffffffff
je 0x4047a4
cmp eax, 1
je 0x4047a4
lea eax, [ebp + 0x86c]
mov dword [esp + 0x30], pe_nt_image_headers32
mov dword [esp + 0xd4], ebx
mov dword [esp + 0x2c], eax
lea eax, [ebp + 0x286c]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x78]
mov dword [esp + 0xc], 1
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x78], 0x1000
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x7c], esi
mov dword [esp + 4], eax
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.004076d0
test eax, eax
js 0x404c70
je 0x4059a3
mov edx, dword [ebp + 0x288c]
add dword [ebp + 0x2884], eax
add dword [ebp + 0x2888], 1
mov dword [ebp + 0x2874], esi
mov dword [ebp + 0x2878], eax
test edx, edx
je 0x404977
mov eax, dword [esp + 0xd4]
mov dword [esp], ebp
mov dword [esp + 4], eax
call edx
cmp eax, 0xffffffff
je 0x404c70
cmp eax, 1
je 0x404c44
mov eax, dword [ebp + 0x2878]
cmp eax, 1
jbe 0x404c60
mov eax, dword [ebp + 0x2874]
mov dword [esp + 0x48], eax
movzx eax, word [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_ntohs]
mov dword [esp + 0x40], eax
call eax
mov ecx, eax
mov edi, eax
sub esp, 4
and cx, 0xc000
and di, 0xfff
movsx edx, cx
mov word [esp + 0x3c], di
mov word [esp + 0x4e], cx
mov esi, edx
mov ecx, edx
mov ebx, edx
mov edi, dword [ebp + 0x858]
sar ecx, 0x1f
sar esi, 0x1f
sar ebx, 0x1f
sar edx, 0x1f
and ecx, 0xfffffffe
and esi, 0xfffffffe
and ebx, 2
and edx, 2
add ecx, 0xffe
add esi, 0xffa
add ebx, 6
add edx, 2
test edi, edi
mov dword [esp + 0x44], edi
cmove esi, ecx
movzx ecx, word [esp + 0x3c]
cmove ebx, edx
cmp cx, 0xfff
je 0x404c80
movzx edi, cx
cmp edi, dword [ebp + 0x28]
jae 0x404c60
lea edx, [edi + edi*2]
shl edx, 7
add edx, dword [ebp + 0x24]
mov ecx, edx
mov dword [esp + 0x3c], edx
mov edx, dword [edx + 0x24]
cmp edx, 9
je 0x404c60
test edx, edx
je 0x404c60
mov edx, dword [ecx + 0x18]
cmp dword [ebp + 0x286c], edx
je 0x405afb
cmp edx, 0xffffffff
jne 0x404c60
mov ecx, dword [esp + 0x3c]
cmp word [ecx + 0xc], 0xffe
ja 0x404a72
mov edx, eax
and edx, 0x3000
sar edx, 0xc
cmp byte [ecx + 0x15], dl
jne 0x404c60
test ah, 0x40
jne 0x4058a2
mov eax, dword [ebp + 0x2874]
mov edi, dword [esp + 0x44]
test edi, edi
je 0x404ada
mov ecx, dword [esp + 0x3c]
lea edx, [eax + ebx - 4]
mov esi, dword [edx]
test ecx, ecx
je 0x405eac
mov ecx, dword [ecx + 0x10]
mov dword [edx], ecx
mov dword [esp + 0x84], eax
mov eax, dword [ebp + 0x2878]
mov dword [esp + 4], 1
mov dword [esp + 0x80], eax
lea eax, [esp + 0x80]
mov dword [esp], eax
mov eax, dword [esp + 0x44]
call eax
cmp esi, eax
jne 0x404c60
mov eax, dword [ebp + 0x2874]
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x405f49
mov edx, dword [ebp + 0x286c]
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 0x18], edx
movzx edx, word [ebp + 0x2870]
mov word [ecx + 0x1c], dx
mov edx, dword [ebp + 0x2878]
add dword [ecx + 0x40], edx
mov ecx, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp + 0xd0], ebp
add ebx, eax
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x58], ecx
add eax, edx
cmp eax, ebx
jbe case.0x404b8f.0
lea edx, [ebx + 4]
cmp eax, edx
jb case.0x404b8f.0
movzx esi, byte [ebx]
and esi, 0xf
mov ecx, esi
cmp cl, 0xc
ja case.0x404b8f.0
movzx edi, cl
mov edx, dword [edi*4 + 0x46e460]
test edx, edx
je case.0x404b8f.0
lea ecx, [ebx + edx]
cmp eax, ecx
mov dword [esp + 0x3c], ecx
jb case.0x404b8f.0
test ebp, ebp
jne 0x404b73
mov eax, esi
cmp al, 2
jne case.0x404b8f.0
movzx eax, word [ebx + 2]
mov dword [esp], eax
call dword [esp + 0x40]
mov word [ebx + 2], ax
mov eax, esi
sub esp, 4
cmp al, 0xc
ja case.0x404b8f.0
jmp dword [edi*4 + 0x46e420]
cmp ecx, 0x3e7
seta al
test al, al
je 0x4048a8
mov dword [esp], ebp
call fcn.00406af0
jmp 0x4048a8
movzx eax, byte [ebx + 1]
cmp eax, dword [ebp + 0x2c]
jae case.0x404b8f.0
mov eax, dword [ebp + 0x24]
sub eax, 5
cmp eax, 1
ja case.0x404b8f.0
movzx eax, word [ebx + 4]
mov dword [esp], eax
call dword [esp + 0x40]
sub esp, 4
movzx eax, ax
mov esi, dword [esp + 0xd0]
add dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
cmp eax, dword [esi + 0x289c]
ja case.0x404b8f.0
mov edx, dword [esi + 0x2874]
cmp ecx, edx
jb case.0x404b8f.0
add edx, dword [esi + 0x2878]
cmp ecx, edx
ja case.0x404b8f.0
mov dword [esp + 0xc], eax
lea eax, [ebx + 6]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], ebp
call fcn.00402c10
test eax, eax
jne 0x404f64
mov ebp, dword [esp + 0xd0]
mov esi, dword [esp + 0xd4]
test esi, esi
je 0x404c60
mov eax, dword [esp + 0xd4]
mov ebx, dword [eax]
test ebx, ebx
jne 0x40479f
sub dword [esp + 0x30], 1
jne 0x4048eb
nop
lea esi, [esi]
mov eax, 0xffffffff
jmp 0x4047a4
mov dword [esp + 0x3c], 0
jmp 0x404a72
movzx eax, byte [ebx + 1]
cmp eax, dword [ebp + 0x2c]
jae case.0x404b8f.0
mov eax, dword [ebp + 0x24]
sub eax, 5
cmp eax, 1
ja case.0x404b8f.0
movzx eax, word [ebx + 6]
mov dword [esp], eax
call dword [esp + 0x40]
sub esp, 4
movzx eax, ax
mov edx, dword [esp + 0xd0]
add dword [esp + 0x3c], eax
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x3c]
cmp eax, dword [edx + 0x289c]
ja case.0x404b8f.0
mov eax, dword [edx + 0x2874]
cmp ecx, eax
jb case.0x404b8f.0
add eax, dword [edx + 0x2878]
cmp ecx, eax
ja case.0x404b8f.0
movzx edi, byte [ebx + 1]
movzx eax, word [ebx + 2]
mov esi, dword [ebp + 0x28]
imul edi, edi, 0x3c
mov dword [esp + 0x50], eax
add esi, edi
mov edi, eax
movzx eax, word [ebx + 4]
mov dword [esp + 0x44], esi
mov dword [esp], eax
call dword [esp + 0x40]
movzx ecx, word [esi + 0x26]
sub esp, 4
mov word [esp + 0x54], ax
mov eax, edi
shr eax, 0xc
mov edx, eax
mov esi, ecx
shr si, 0xc
cmp edi, ecx
jae 0x405f7b
lea edx, [eax + 0x10]
movzx eax, si
movzx edx, dx
add eax, 6
cmp eax, edx
jl 0x404f64
movzx eax, word [esp + 0x54]
cmp dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
jne 0x404d68
mov eax, dword [esp + 0x44]
movzx eax, word [eax + 0x28]
cmp dword [esp + 0x54], eax
jbe 0x404f64
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov dword [esp + 0x64], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
push edx
mov esi, eax
mov dword [esp + 0x68], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
push ecx
mov edi, eax
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
push edx
cmp dword [esp + 0x64], esi
jae case.0x404b8f.0
cmp esi, 0x100000
ja case.0x404b8f.0
cmp edi, eax
jae case.0x404b8f.0
mov esi, dword [esp + 0xd0]
cmp eax, dword [esi + 0x289c]
ja case.0x404b8f.0
mov edx, eax
sub edx, edi
cmp dword [esp + 0x5c], edx
ja case.0x404b8f.0
mov edx, dword [esp + 0x44]
mov esi, dword [edx + 0x38]
mov ecx, edx
add ecx, 0x34
mov dword [esp + 0x6c], ecx
cmp esi, ecx
je 0x404e41
movzx edx, word [edx + 0x26]
mov edi, dword [esp + 0x44]
cmp dword [esp + 0x50], edx
mov ecx, edx
jae 0x404f0d
jmp 0x404e34
cmp edx, dword [esp + 0x50]
jb 0x404e3d
ja 0x404e2b
movzx edx, word [esi + 0xa]
cmp dword [esp + 0x54], edx
jae 0x4061ed
mov esi, dword [esi + 4]
cmp esi, dword [esp + 0x6c]
je 0x404e3d
movzx edx, word [esi + 8]
cmp dx, cx
jb 0x404e15
mov dword [esp + 0x44], edi
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 0x14], ecx
call fcn.00402c10
test eax, eax
mov esi, eax
je case.0x404b8f.0
mov ecx, dword [esp + 0x64]
mov eax, dword [esi + 0x44]
mov edx, ecx
shr edx, 5
lea edx, [eax + edx*4]
mov eax, 1
shl eax, cl
test dword [edx], eax
jne 0x404f64
sub dword [esi + 0x40], 1
mov ecx, dword [esp + 0x5c]
or dword [edx], eax
mov eax, dword [esi + 0x48]
mov edx, dword [esp + 0x60]
mov edi, dword [eax + 0xc]
add ecx, edx
sub edi, edx
cmp ecx, dword [eax + 0xc]
mov ecx, dword [esp + 0x60]
cmovbe edi, dword [esp + 0x5c]
add ecx, dword [eax + 8]
lea edx, [ebx + 0x18]
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [esp], ecx
call sub.VCRUNTIME140.dll_memcpy
cmp dword [esi + 0x40], 0
jne 0x404f64
mov eax, dword [esp + 0x44]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00402890
jmp 0x404f64
jb 0x404f00
movzx edx, word [esi + 0xa]
cmp dword [esp + 0x54], edx
jae 0x4061ed
mov esi, dword [esi + 4]
cmp esi, dword [esp + 0x6c]
je 0x404e3d
movzx edx, word [esi + 8]
cmp dx, cx
jb 0x404f00
cmp dword [esp + 0x50], edx
jbe 0x404ef0
jmp 0x404e3d
mov eax, dword [ebp + 0x24]
sub eax, 5
cmp eax, 1
ja case.0x404b8f.0
mov eax, dword [ebx + 4]
mov esi, dword [esp + 0x58]
mov dword [esp], eax
call esi
mov dword [ebp + 0x84], eax
mov eax, dword [ebx + 8]
sub esp, 4
mov dword [esp], eax
call esi
mov dword [ebp + 0x7c], eax
mov eax, dword [ebx + 0xc]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebp + 0x80], eax
cmp byte [ebx], 0
js 0x40593e
mov eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0xd0]
mov ebx, dword [esp + 0x3c]
mov eax, dword [eax + 0x2874]
mov edx, dword [ecx + 0x2878]
jmp 0x404b1e
mov eax, dword [ebp + 0x24]
sub eax, 5
cmp eax, 1
ja case.0x404b8f.0
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x404fb4
mov eax, dword [esp + 0xd0]
sub dword [eax + 0x2894], 1
mov eax, dword [ebx + 4]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp], eax
call esi
mov dword [ebp + 0x30], eax
mov eax, dword [ebx + 8]
sub esp, 4
mov dword [esp], eax
call esi
mov edx, dword [ebp + 0x30]
sub esp, 4
mov dword [ebp + 0x34], eax
mov eax, dword [esp + 0xd0]
test edx, edx
je 0x405eb3
add dword [eax + 0x2894], 1
mov eax, dword [eax + 0x10]
test eax, eax
je 0x405ebe
cmp eax, edx
cmova eax, edx
shr eax, 0x10
shl eax, 0xc
mov dword [ebp + 0xb4], eax
cmp eax, 0xfff
jbe 0x405f6c
cmp eax, 0x10000
jbe 0x404f64
mov dword [ebp + 0xb4], 0x10000
jmp 0x404f64
movzx eax, byte [ebx + 1]
cmp eax, dword [ebp + 0x2c]
jae case.0x404b8f.0
mov eax, dword [ebp + 0x24]
sub eax, 5
cmp eax, 1
ja case.0x404b8f.0
movzx eax, word [ebx + 6]
mov edi, dword [esp + 0x40]
mov dword [esp], eax
call edi
sub esp, 4
movzx eax, ax
mov edx, dword [esp + 0xd0]
add dword [esp + 0x3c], eax
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x3c]
cmp eax, dword [edx + 0x289c]
ja case.0x404b8f.0
mov eax, dword [edx + 0x2874]
cmp ecx, eax
jb case.0x404b8f.0
add eax, dword [edx + 0x2878]
cmp ecx, eax
ja case.0x404b8f.0
movzx eax, byte [ebx + 1]
imul eax, eax, 0x3c
add eax, dword [ebp + 0x28]
mov dword [esp + 0x54], eax
movzx eax, word [ebx + 4]
mov dword [esp], eax
call edi
sub esp, 4
movzx edi, ax
mov eax, dword [esp + 0x54]
mov ecx, edi
mov word [esp + 0x68], di
shr ecx, 0xc
mov esi, ecx
movzx eax, word [eax + 0x26]
mov edx, eax
shr dx, 0xc
cmp edi, eax
jae 0x405f89
lea esi, [ecx + 0x10]
movzx eax, dx
movzx esi, si
add eax, 6
cmp eax, esi
jl 0x404f64
mov eax, dword [ebx + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp], eax
call esi
push edx
mov dword [esp + 0x60], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call esi
push ecx
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call esi
push edx
mov dword [esp + 0x44], eax
mov eax, dword [ebx + 0x10]
mov dword [esp], eax
call esi
push ecx
mov ecx, dword [esp + 0x5c]
cmp dword [esp + 0x60], ecx
jae case.0x404b8f.0
cmp ecx, 0x100000
ja case.0x404b8f.0
mov esi, dword [esp + 0xd0]
cmp eax, dword [esi + 0x289c]
ja case.0x404b8f.0
mov ecx, dword [esp + 0x44]
cmp ecx, eax
jae case.0x404b8f.0
mov esi, eax
sub esi, ecx
cmp dword [esp + 0x50], esi
ja case.0x404b8f.0
mov ecx, dword [esp + 0x54]
mov esi, dword [ecx + 0x30]
lea edx, [ecx + 0x2c]
mov dword [esp + 0x64], edx
cmp esi, edx
je 0x4051a6
movzx ecx, word [ecx + 0x26]
cmp edi, ecx
mov edx, ecx
jae 0x40585f
jmp 0x40519d
cmp ecx, edi
jbe 0x40586c
mov esi, dword [esi + 4]
cmp esi, dword [esp + 0x64]
je 0x4051a6
movzx ecx, word [esi + 8]
cmp cx, dx
jb 0x40518c
lea edi, [esp + 0x80]
mov ecx, 0xc
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [esp + 0x68]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x10], 1
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], ebp
mov word [esp + 0x82], cx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x14], ecx
call fcn.00402c10
test eax, eax
mov esi, eax
je case.0x404b8f.0
mov edx, dword [esp + 0x60]
mov eax, dword [esi + 0x44]
mov ecx, edx
shr ecx, 5
lea edi, [eax + ecx*4]
mov eax, 1
mov ecx, edx
shl eax, cl
test dword [edi], eax
jne 0x404f64
sub dword [esi + 0x40], 1
mov ecx, dword [esp + 0x44]
or dword [edi], eax
mov eax, dword [esi + 0x48]
mov edi, dword [esp + 0x50]
mov edx, dword [eax + 0xc]
add edi, ecx
mov dword [esp + 0x5c], eax
mov eax, edx
sub eax, ecx
cmp edi, edx
cmovbe eax, dword [esp + 0x50]
mov edi, dword [esp + 0x44]
lea ecx, [ebx + 0x18]
mov edx, eax
mov eax, dword [esp + 0x5c]
add edi, dword [eax + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], edi
call sub.VCRUNTIME140.dll_memcpy
cmp dword [esi + 0x40], 0
jne 0x404f64
mov eax, dword [esp + 0x54]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00402b10
jmp 0x404f64
mov eax, dword [ebp + 0x24]
sub eax, 5
cmp eax, 1
ja case.0x404b8f.0
jmp 0x404f64
movzx eax, byte [ebx + 1]
cmp eax, dword [ebp + 0x2c]
jae case.0x404b8f.0
mov eax, dword [ebp + 0x24]
sub eax, 5
cmp eax, 1
ja case.0x404b8f.0
movzx eax, word [ebx + 6]
mov edi, dword [esp + 0x40]
mov dword [esp], eax
call edi
sub esp, 4
movzx esi, ax
mov eax, dword [esp + 0xd0]
add dword [esp + 0x3c], esi
mov ecx, dword [esp + 0x3c]
cmp esi, dword [eax + 0x289c]
ja case.0x404b8f.0
mov eax, dword [eax + 0x2874]
cmp ecx, eax
jb case.0x404b8f.0
mov edx, dword [esp + 0xd0]
add eax, dword [edx + 0x2878]
cmp ecx, eax
ja case.0x404b8f.0
movzx eax, word [ebx + 4]
mov dword [esp], eax
call edi
movzx edx, word [ebp + 0xf4]
sub esp, 4
mov edi, eax
mov word [esp + 0x44], ax
movzx eax, ax
lea ecx, [eax + 0x10000]
cmp eax, edx
cmovb eax, ecx
lea ecx, [edx + 0x8000]
cmp ecx, eax
jbe 0x404f64
and di, 0x3ff
movzx eax, ax
movzx ecx, di
mov edi, eax
sub edi, ecx
mov word [esp + 0x54], cx
mov dword [esp + 0x50], ecx
cmp edx, edi
je 0x405fd7
sub eax, dword [esp + 0x54]
lea edx, [ebp + 0xf8]
mov ecx, 0x20
mov edi, edx
mov word [ebp + 0xf4], ax
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebx + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov dword [esp], ebp
call fcn.00402c10
test eax, eax
je case.0x404b8f.0
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
mov edx, 1
shr eax, 5
shl edx, cl
or dword [ebp + eax*4 + 0xf8], edx
jmp 0x404f64
mov eax, dword [ebp + 0x24]
lea edx, [eax - 8]
cmp edx, 1
jbe 0x404f64
test eax, eax
je 0x404f64
mov dword [esp], ebp
call fcn.00401650
mov eax, dword [ebp + 0x24]
cmp eax, 7
sete cl
cmp eax, 4
sete dl
or cl, dl
jne 0x40602b
cmp eax, 1
je 0x40602b
lea edx, [eax - 5]
cmp edx, 1
jbe 0x4060bd
cmp eax, 3
jne 0x40541e
mov eax, dword [esp + 0xd0]
mov dword [eax + 0x20], 1
mov dword [esp], ebp
call fcn.004019c0
cmp dword [ebp + 0x24], 0
je 0x404f64
mov eax, dword [ebx + 4]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov dword [ebp + 0x178], eax
jmp 0x404f64
movzx eax, byte [ebx + 1]
cmp eax, dword [ebp + 0x2c]
jae case.0x404b8f.0
mov eax, dword [ebp + 0x24]
sub eax, 5
cmp eax, 1
ja case.0x404b8f.0
movzx eax, word [ebx + 6]
mov dword [esp], eax
call dword [esp + 0x40]
sub esp, 4
movzx eax, ax
mov esi, dword [esp + 0xd0]
add dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x3c]
cmp eax, dword [esi + 0x289c]
ja case.0x404b8f.0
mov edx, dword [esi + 0x2874]
cmp ecx, edx
jb case.0x404b8f.0
add edx, dword [esi + 0x2878]
cmp ecx, edx
ja case.0x404b8f.0
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 0
lea eax, [ebx + 8]
mov dword [esp + 0x10], 0
jmp 0x404c25
test ebp, ebp
jne case.0x404b8f.0
mov eax, dword [ebx + 0x10]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp], eax
call edi
sub esp, 4
mov dword [esp + 0x44], eax
sub eax, 1
cmp eax, 0xfe
ja case.0x404b8f.0
mov ecx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd0]
mov edx, dword [ecx + 0x28]
mov eax, dword [eax + 0x24]
lea ecx, [edx + edx*2]
shl ecx, 7
add ecx, eax
cmp eax, ecx
jae case.0x404b8f.0
mov dword [esp + 0x50], edi
xor esi, esi
mov edi, dword [esp + 0xd0]
jmp 0x405542
test ebp, ebp
cmove ebp, eax
add eax, 0x180
cmp eax, ecx
jae 0x405b30
mov edx, dword [eax + 0x24]
test edx, edx
je 0x405530
cmp edx, 1
je 0x405535
mov edx, dword [edi + 0x286c]
cmp dword [eax + 0x18], edx
jne 0x405535
movzx edx, word [edi + 0x2870]
cmp word [eax + 0x1c], dx
je 0x405ee1
add esi, 1
jmp 0x405535
mov eax, dword [ebp + 0x24]
cmp eax, 9
je 0x404f64
test eax, eax
je 0x404f64
movzx eax, word [ebx + 6]
mov dword [esp], eax
call dword [esp + 0x40]
push ecx
movzx ecx, ax
mov eax, dword [esp + 0xd0]
mov edx, dword [eax + 0x30]
mov eax, edx
mov esi, edx
xor ax, ax
and esi, 0x8000
or eax, ecx
mov edi, eax
lea ecx, [eax - 0x10000]
and edi, 0x8000
cmp edi, esi
mov esi, edx
cmova eax, ecx
sub esi, eax
cmp esi, 0x5265bff
ja 0x404f64
mov dword [ebp + 0x4c], edx
mov dword [ebp + 0x54], 0
mov dword [esp + 4], esi
mov dword [esp], ebp
call fcn.00401560
mov edx, dword [ebp + 0xac]
mov eax, edx
shr eax, 2
sub edx, eax
mov eax, dword [ebp + 0xa8]
cmp eax, esi
ja 0x4060a6
mov ecx, esi
sub ecx, eax
shr ecx, 3
add eax, ecx
mov ecx, esi
sub ecx, eax
shr ecx, 2
add edx, ecx
cmp dword [ebp + 0x9c], eax
mov dword [ebp + 0xac], edx
mov dword [ebp + 0xa8], eax
jbe 0x40562b
mov dword [ebp + 0x9c], eax
cmp dword [ebp + 0xa4], edx
jae 0x405639
mov dword [ebp + 0xa4], edx
mov ecx, dword [ebp + 0x78]
test ecx, ecx
jne 0x40606c
mov ecx, dword [esp + 0xd0]
mov esi, dword [ecx + 0x30]
mov ecx, dword [ebp + 0x9c]
mov dword [ebp + 0x78], esi
mov dword [ebp + 0x9c], eax
mov dword [ebp + 0x98], ecx
mov ecx, dword [ebp + 0xa4]
mov dword [ebp + 0xa4], edx
mov dword [ebp + 0xa0], ecx
movzx eax, word [ebx + 4]
mov dword [esp], eax
call dword [esp + 0x40]
push edx
movzx ecx, byte [ebx + 1]
movzx edx, ax
mov eax, ebp
call fcn.00403450
mov edx, dword [ebp + 0x24]
cmp edx, 6
je 0x4060e7
cmp edx, 7
je 0x406195
cmp edx, 2
jne 0x404f64
cmp eax, 3
jne case.0x404b8f.0
cmp dword [esp + 0xd4], 0
mov eax, dword [esp + 0xd0]
mov dword [eax + 0x20], 1
mov dword [esp], ebp
je 0x40629c
call fcn.00401960
mov eax, dword [esp + 0xd4]
mov dword [ebp + 0x24], 5
mov ecx, dword [esp + 0xd4]
mov dword [eax], 1
mov dword [eax + 4], ebp
mov eax, dword [ebp + 0x178]
mov dword [ecx + 0xc], eax
jmp 0x404f64
cmp dword [ebp + 0x24], 1
jne 0x404f64
mov eax, dword [ebx + 0x10]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp], eax
call edi
mov esi, eax
lea eax, [eax - 1]
push ecx
cmp eax, 0xfe
ja 0x406134
mov eax, dword [ebx + 0x1c]
mov dword [esp], eax
call edi
push edx
cmp eax, dword [ebp + 0x84]
jne 0x406134
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call edi
push ecx
cmp eax, dword [ebp + 0x7c]
jne 0x406134
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
call edi
push edx
cmp eax, dword [ebp + 0x80]
jne 0x406134
mov eax, dword [ebp + 0x10]
cmp dword [ebx + 0x28], eax
jne 0x406134
mov ecx, 0xff
mov edx, 1
mov eax, ebp
call fcn.00403450
cmp esi, dword [ebp + 0x2c]
jae 0x40579a
mov dword [ebp + 0x2c], esi
movzx eax, word [ebx + 4]
mov dword [esp], eax
call dword [esp + 0x40]
push edx
mov word [ebp + 0xc], ax
movzx eax, byte [ebx + 6]
mov byte [ebp + 0x15], al
movzx eax, byte [ebx + 7]
mov byte [ebp + 0x14], al
mov eax, dword [ebx + 8]
mov dword [esp], eax
call edi
cmp eax, 0x23f
push ecx
mov edx, 0x240
jbe 0x4057d9
cmp eax, 0x1000
mov dx, 0x1000
cmovbe edx, eax
cmp dword [ebp + 0xb0], edx
jbe 0x4057e7
mov dword [ebp + 0xb0], edx
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call edi
cmp eax, 0xfff
push esi
jbe 0x40618b
cmp eax, 0x10001
mov edx, 0x10000
cmovae eax, edx
cmp dword [ebp + 0xb4], eax
jbe 0x405816
mov dword [ebp + 0xb4], eax
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call edi
push edx
mov dword [ebp + 0x30], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call edi
push ecx
cmp dword [esp + 0xd4], 0
mov dword [ebp + 0x34], eax
mov eax, dword [esp + 0xd0]
mov dword [eax + 0x20], 1
je 0x406274
mov dword [esp], ebp
jmp 0x4056d5
mov esi, dword [esi + 4]
cmp esi, dword [esp + 0x64]
je 0x4051a6
movzx ecx, word [esi + 8]
cmp cx, dx
jb 0x405852
cmp edi, ecx
jb 0x405852
cmp edi, ecx
ja 0x4051a6
movzx ecx, byte [esi + 0xc]
and ecx, 0xf
cmp cl, 8
jne case.0x404b8f.0
mov ecx, dword [esi + 0x48]
cmp eax, dword [ecx + 0xc]
jne case.0x404b8f.0
mov eax, dword [esp + 0x5c]
cmp eax, dword [esi + 0x3c]
je 0x4051fc
jmp case.0x404b8f.0
mov edx, dword [ebp + 0x85c]
test edx, edx
je 0x404c60
mov ecx, dword [ebp + 0x864]
test ecx, ecx
je 0x404c60
lea edi, [ebp + 0x186c]
mov dword [esp + 0x10], esi
lea eax, [edi + ebx]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x2878]
sub eax, ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x2874]
mov dword [esp], edx
add eax, ebx
mov dword [esp + 4], eax
call ecx
test eax, eax
je 0x404c60
cmp eax, esi
ja 0x404c60
cmp ebx, 4
jae 0x405ef4
test ebx, ebx
je 0x40591f
mov ecx, dword [esp + 0x48]
test bl, 2
movzx edx, byte [ecx]
mov byte [ebp + 0x186c], dl
jne 0x4061da
add eax, ebx
mov dword [ebp + 0x2874], edi
mov dword [ebp + 0x2878], eax
mov eax, dword [ebp + 0x858]
mov dword [esp + 0x44], eax
mov eax, edi
jmp 0x404a81
cmp word [esp + 0x4e], 0
jns case.0x404b8f.0
mov eax, dword [esp + 0x48]
movzx eax, word [eax + 2]
mov dword [esp], eax
call dword [esp + 0x40]
mov ecx, dword [ebp + 0x24]
sub esp, 4
cmp ecx, 9
ja 0x40598b
mov edx, 1
shl edx, cl
test edx, 0x285
jne 0x404f6d
and dh, 1
je 0x40598b
movzx edx, byte [ebx]
and edx, 0xf
cmp dl, 4
jne 0x404f6d
movzx eax, ax
mov dword [esp + 4], ebx
mov dword [esp], ebp
mov dword [esp + 8], eax
call fcn.00401c10
jmp 0x404f6d
mov ebx, dword [esp + 0xd4]
mov ecx, 1
mov eax, ebp
mov edx, ebx
call fcn.00403ac0
cmp eax, 0xffffffff
je 0x4047a4
cmp eax, 1
je 0x4047a4
lea eax, [ebx + 8]
test ebx, ebx
lea esi, [ebp + 0x34]
mov dword [esp + 0x28], eax
je 0x405a27
mov eax, dword [ebp + 0x34]
cmp eax, esi
je 0x405a27
mov dword [esp], eax
call fcn.004091d0
mov edi, eax
mov dword [eax + 0xf0], 0
mov eax, dword [eax + 0x24]
cmp eax, 5
je 0x405a96
ja 0x405a0d
cmp eax, 3
jb 0x4059d8
mov ebp, ebx
jmp 0x40477d
cmp eax, 9
jne 0x4059d8
mov dword [esp + 0xd4], ebx
mov ebx, ebp
mov ebp, dword [esp + 0xd4]
jmp 0x4047b5
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x34]
sub eax, ecx
cmp eax, 0x5265bff
jbe 0x405a8f
lea esi, [esp + 0x74]
mov edi, ecx
jmp 0x405a7b
mov ecx, edi
mov dword [esp + 4], esi
mov dword [esp + 0x74], 6
sub ecx, eax
cmp ecx, 0x5265bff
cmovbe edx, ecx
mov dword [esp + 8], edx
mov eax, dword [ebp]
mov dword [esp], eax
call fcn.00407820
test eax, eax
jne 0x404c70
test byte [esp + 0x74], 4
je 0x405b11
call fcn.00406f80
mov edx, eax
mov dword [ebp + 0x30], eax
sub edx, edi
cmp edx, 0x5265bff
ja 0x405a40
xor eax, eax
jmp 0x4047a4
lea edx, [edi + 0xe8]
cmp dword [edi + 0xe8], edx
mov dword [esp + 0x2c], edx
je 0x4059d8
mov eax, dword [esp + 0x28]
mov dword [esp], edi
mov dword [esp + 4], eax
call fcn.004015e0
test eax, eax
mov dword [ebx + 0x10], eax
je 0x4059d8
mov edx, dword [esp + 0x2c]
cmp dword [edi + 0xe8], edx
mov dword [ebx], 3
mov dword [ebx + 4], edi
je 0x40479f
mov dword [edi + 0xf0], 1
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.004091b0
jmp 0x40479f
movzx ecx, word [ecx + 0x1c]
cmp word [ebp + 0x2870], cx
jne 0x404a49
jmp 0x404a52
call fcn.00406f80
test byte [esp + 0x74], 2
mov dword [ebp + 0x30], eax
jne 0x404882
xor eax, eax
jmp 0x4047a4
test ebp, ebp
mov edi, dword [esp + 0x50]
je case.0x404b8f.0
mov eax, dword [esp + 0xd0]
cmp dword [eax + 0x2898], esi
jbe case.0x404b8f.0
mov eax, dword [eax + 0x2c]
mov ecx, dword [esp + 0x44]
cmp ecx, eax
cmovbe eax, ecx
mov dword [esp + 0x5c], eax
mov esi, eax
imul eax, eax, 0x3c
mov dword [esp], eax
mov dword [esp + 0x54], eax
call fcn.00409150
test eax, eax
mov dword [ebp + 0x28], eax
je case.0x404b8f.0
mov dword [ebp + 0x2c], esi
mov dword [ebp + 0x24], 2
mov eax, dword [ebx + 0x28]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 0xd0]
mov edx, dword [eax + 0x2870]
mov eax, dword [eax + 0x286c]
mov dword [ebp + 0x1c], edx
mov dword [ebp + 0x18], eax
movzx eax, word [ebx + 4]
mov dword [esp], eax
call dword [esp + 0x40]
mov word [ebp + 0xc], ax
mov eax, dword [ebx + 0x14]
sub esp, 4
mov dword [esp], eax
call edi
mov dword [ebp + 0x30], eax
mov eax, dword [ebx + 0x18]
sub esp, 4
mov dword [esp], eax
call edi
mov dword [ebp + 0x34], eax
mov eax, dword [ebx + 0x1c]
sub esp, 4
mov dword [esp], eax
call edi
mov dword [ebp + 0x84], eax
mov eax, dword [ebx + 0x20]
sub esp, 4
mov dword [esp], eax
call edi
mov dword [ebp + 0x7c], eax
mov eax, dword [ebx + 0x24]
sub esp, 4
mov dword [esp], eax
call edi
mov dword [ebp + 0x80], eax
mov eax, dword [ebx + 0x2c]
sub esp, 4
mov dword [esp], eax
call edi
mov dword [ebp + 0x178], eax
movzx eax, byte [ebx + 6]
sub esp, 4
cmp al, 0xff
je 0x406022
add eax, 1
and eax, 3
cmp al, byte [ebp + 0x14]
mov byte [esp + 0x44], al
je 0x406013
mov byte [ebp + 0x14], al
movzx eax, byte [ebx + 7]
cmp al, 0xff
je 0x40600a
add eax, 1
and eax, 3
cmp al, byte [ebp + 0x15]
mov byte [esp + 0x50], al
je 0x405ffb
mov esi, dword [ebp + 0x28]
mov byte [ebp + 0x15], al
mov eax, dword [esp + 0x54]
add eax, esi
cmp esi, eax
jae 0x405cd4
xor eax, eax
xor ecx, ecx
mov word [esi + 2], ax
xor eax, eax
mov word [esi], cx
mov word [esi + 0x26], ax
xor eax, eax
mov word [esi + 0x28], ax
lea eax, [esi + 0x2c]
mov dword [esp], eax
call fcn.004091a0
lea eax, [esi + 0x34]
mov dword [esp], eax
call fcn.004091a0
xor eax, eax
lea edx, [esi + 0xa]
mov dword [esi + 6], 0
mov word [esi + 4], ax
lea eax, [esi + 6]
mov dword [esi + 0x22], 0
and edx, 0xfffffffc
xor ecx, ecx
sub eax, edx
add eax, 0x20
and eax, 0xfffffffc
mov dword [edx + ecx], 0
add ecx, 4
cmp ecx, eax
jb 0x405cb8
mov eax, dword [esp + 0x54]
add eax, dword [ebp + 0x28]
add esi, 0x3c
cmp esi, eax
jb 0x405c64
mov eax, dword [ebx + 8]
mov dword [esp], eax
call edi
sub esp, 4
cmp eax, 0x23f
mov edx, 0x240
jbe 0x405cf8
cmp eax, 0x1000
mov edx, 0x1000
cmovbe edx, eax
mov eax, dword [esp + 0xd0]
mov dword [ebp + 0xb0], edx
mov eax, dword [eax + 0x10]
test eax, eax
je 0x405f97
mov edx, dword [ebp + 0x30]
test edx, edx
je 0x405f54
cmp edx, eax
cmovbe eax, edx
shr eax, 0x10
shl eax, 0xc
mov dword [ebp + 0xb4], eax
cmp eax, 0xfff
ja 0x405fca
mov dword [ebp + 0xb4], 0x1000
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x405fac
shr eax, 0x10
shl eax, 0xc
mov esi, eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call edi
cmp esi, eax
push edx
ja 0x406096
cmp esi, 0xfff
mov edi, 0x1000
jbe 0x405d87
cmp esi, 0x10000
mov edi, 0x10000
cmovbe edi, esi
mov byte [esp + 0x80], 0x83
mov byte [esp + 0x81], 0xff
movzx eax, word [ebp + 0xe]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
sub esp, 4
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov word [esp + 0x84], ax
movzx eax, byte [esp + 0x44]
mov byte [esp + 0x86], al
movzx eax, byte [esp + 0x50]
mov byte [esp + 0x87], al
mov eax, dword [ebp + 0xb0]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp], edi
mov dword [esp + 0x88], eax
call esi
sub esp, 4
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xd0]
mov eax, dword [eax + 0x10]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 0x84]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 0x9c], eax
mov eax, dword [ebp + 0x7c]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 0xa0], eax
mov eax, dword [ebp + 0x80]
mov dword [esp], eax
call esi
sub esp, 4
mov dword [esp + 0xa4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], ebp
mov dword [esp + 0xa8], eax
lea eax, [esp + 0x80]
mov dword [esp + 4], eax
call fcn.00401fa0
jmp 0x404f64
xor ecx, ecx
jmp 0x404a9e
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x405021
mov eax, dword [esp + 0xd0]
cmp dword [eax + 0x10], edx
mov ecx, eax
mov eax, edx
cmovae eax, dword [ecx + 0x10]
shr eax, 0x10
shl eax, 0xc
mov dword [ebp + 0xb4], eax
jmp 0x40500b
mov edx, dword [ebx + 0x28]
cmp dword [eax + 0x10], edx
jne 0x40556a
mov ebp, edi
jmp 0x404c44
mov ecx, dword [esp + 0x48]
mov esi, edi
mov edx, dword [ecx]
mov dword [ebp + 0x186c], edx
mov edx, dword [ebx + ecx - 4]
mov dword [ebx + edi - 4], edx
sub esi, dword [esp + 0x38]
sub ecx, esi
add esi, ebx
and esi, 0xfffffffc
cmp esi, 4
jb 0x40591f
and esi, 0xfffffffc
xor edx, edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x50], eax
mov ebx, dword [ecx + edx]
mov eax, dword [esp + 0x38]
mov dword [eax + edx], ebx
add edx, 4
cmp edx, esi
jb 0x405f2b
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
jmp 0x40591f
mov edx, dword [ebp + 0x2878]
jmp 0x404b07
cmp dword [ebp + 0x30], eax
cmovae eax, dword [ebp + 0x30]
shr eax, 0x10
shl eax, 0xc
mov dword [ebp + 0xb4], eax
jmp 0x405d2c
mov dword [ebp + 0xb4], 0x1000
jmp 0x404f64
cmp ax, si
jb 0x404f64
jmp 0x404d36
cmp cx, dx
jb 0x404f64
jmp 0x4050dc
cmp dword [ebp + 0x30], 0
jne 0x405f54
mov dword [ebp + 0xb4], 0x10000
jmp 0x405d41
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call edi
cmp eax, 0xffff
push edx
jbe 0x406096
mov esi, 0x10000
jmp 0x405d79
cmp eax, 0x10000
jbe 0x405d41
jmp 0x405f9d
mov edx, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
mov eax, 1
shr edx, 5
shl eax, cl
test dword [ebp + edx*4 + 0xf8], eax
je 0x405373
jmp 0x404f64
add eax, 1
and eax, 3
mov byte [esp + 0x50], al
jmp 0x405c54
movzx eax, byte [ebp + 0x15]
jmp 0x405c41
add eax, 1
and eax, 3
mov byte [esp + 0x44], al
jmp 0x405c32
movzx eax, byte [ebp + 0x14]
jmp 0x405c1f
mov dword [esp], ebp
call fcn.00401990
cmp dword [ebp + 0xf0], 0
mov dword [ebp + 0x24], 9
jne 0x405430
mov eax, dword [esp + 0xd0]
mov dword [esp + 4], ebp
add eax, 0x34
mov dword [esp], eax
call fcn.004091b0
mov dword [ebp + 0xf0], 1
jmp 0x405426
mov esi, dword [esp + 0xd0]
mov esi, dword [esi + 0x30]
mov edi, esi
sub edi, ecx
sub ecx, esi
cmp edi, 0x5265c00
cmovae edi, ecx
cmp dword [ebp + 0x84], edi
ja 0x405675
jmp 0x40564e
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call edi
push esi
mov esi, eax
jmp 0x405d6c
mov ecx, eax
sub ecx, esi
shr ecx, 3
sub eax, ecx
mov ecx, eax
sub ecx, esi
shr ecx, 2
add edx, ecx
jmp 0x405611
cmp byte [ebx], 0
mov dword [esp], ebp
js 0x4062b7
call fcn.00401990
cmp dword [ebp + 0xf0], 0
mov dword [ebp + 0x24], 9
jne 0x405430
jmp 0x406047
lea eax, [ebp + 0xd8]
cmp dword [ebp + 0xd8], eax
jne 0x404f64
lea eax, [ebp + 0xe0]
cmp dword [ebp + 0xe0], eax
jne 0x404f64
lea eax, [ebp + 0xc8]
cmp dword [ebp + 0xc8], eax
jne 0x404f64
mov eax, dword [ebp + 0x178]
mov dword [esp], ebp
mov dword [esp + 4], eax
call fcn.00401ec0
jmp 0x404f64
mov dword [esp + 0x3c], ebp
mov esi, dword [esp + 0x3c]
mov ebp, dword [esp + 0xd0]
mov dword [esi + 0x178], 0
mov dword [esp], esi
call fcn.00401990
cmp dword [esi + 0xf0], 0
mov dword [esi + 0x24], 9
jne 0x404c44
mov esi, dword [esp + 0x3c]
lea eax, [ebp + 0x34]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.004091b0
mov dword [esi + 0xf0], 1
jmp 0x404c44
mov eax, 0x1000
jmp 0x405808
cmp eax, 4
jne case.0x404b8f.0
cmp dword [esp + 0xd4], 0
mov eax, dword [esp + 0xd0]
mov dword [eax + 0x20], 1
je 0x406229
mov eax, dword [esp + 0xd4]
mov dword [eax], 2
mov dword [eax + 4], ebp
mov dword [eax + 0xc], 0
mov dword [esp], ebp
call fcn.004019c0
jmp 0x404f64
mov ecx, dword [esp + 0x48]
movzx edx, word [ebx + ecx - 2]
mov word [ebx + edi - 2], dx
jmp 0x40591f
cmp dword [esp + 0x54], edx
mov dword [esp + 0x44], edi
ja 0x404e41
movzx edx, byte [esi + 0xc]
and edx, 0xf
cmp dl, 0xc
jne case.0x404b8f.0
mov edx, dword [esi + 0x48]
cmp eax, dword [edx + 0xc]
jne case.0x404b8f.0
mov eax, dword [esp + 0x68]
cmp eax, dword [esi + 0x3c]
je 0x404e73
jmp case.0x404b8f.0
mov dword [ebp + 0x178], 0
mov dword [esp], ebp
call fcn.00401990
cmp dword [ebp + 0xf0], 0
mov dword [ebp + 0x24], 9
jne 0x404f64
mov eax, dword [esp + 0xd0]
mov dword [esp + 4], ebp
add eax, 0x34
mov dword [esp], eax
call fcn.004091b0
mov dword [ebp + 0xf0], 1
jmp 0x404f64
xor eax, eax
cmp dword [ebp + 0x24], 1
mov dword [esp], ebp
sete al
mov esi, eax
add esi, 3
call fcn.00401990
cmp dword [ebp + 0xf0], 0
mov dword [ebp + 0x24], esi
jne 0x404f64
jmp 0x40624f
call fcn.00401990
cmp dword [ebp + 0xf0], 0
mov dword [ebp + 0x24], 3
jne 0x404f64
jmp 0x40624f
call fcn.00401990
mov dword [ebp + 0x24], 8
jmp 0x405430