Function at 0x401620
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x4133eb
mov eax, dword fs:[0]
push eax
sub esp, 0x350
mov eax, dword [0x41922c]
xor eax, ebp
mov dword [ebp + 0x200], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x20c]
push esi
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 0x34], esi
call fcn.00401190
lea eax, [ebp - 0x2a4]
mov ecx, eax
mov dword [ebp - 0x18], eax
call fcn.0040ae30
mov ecx, dword [esi + 0x58]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x290], eax
mov byte [ebp - 0x287], al
mov dword [ebp - 0x28c], eax
mov byte [ebp - 0x288], al
mov byte [ebp - 0x19], al
mov byte [ebp - 0x21], al
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x280], eax
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], 0x4154e0
add eax, 4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
sub eax, 1
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x14], eax
jle 0x40175f
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
cmp byte [eax], 0x2d
je 0x401726
mov eax, dword [ebp - 0x38]
cmp eax, ecx
je 0x401719
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0x44], ecx
push eax
lea ecx, [ebp - 0xf4]
call fcn.0040cc80
push eax
push 1
call fcn.00401580
add esp, 8
mov edx, dword [ebx]
add ebx, 4
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x20], ebx
jmp 0x4016d9
push 0x200
lea ecx, [ebp]
push ecx
push eax
call fcn.00401270
add ebx, 4
add esp, 0xc
cmp byte [ebp + 1], 0
mov dword [ebp - 0x20], ebx
je 0x4016d9
mov edi, 0x415e94
lea esi, [ebp]
mov ecx, 3
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4017d2
mov byte [ebp - 0x21], 1
mov byte [ebp - 0x19], 1
mov edi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
mov eax, esi
and eax, 0x800000
xor ecx, ecx
or eax, ecx
je 0x40179f
mov eax, esi
and eax, 0x1e000000
or eax, ecx
jne 0x40179f
lea ecx, [ebp - 0x1ac]
xor eax, eax
push ecx
push 0x13
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
call fcn.00401580
add esp, 8
mov edx, esi
or edx, ebx
jne 0x4022b7
cmp byte [ebp - 0x19], 0
jne 0x4022c7
mov eax, dword [edi + 0x10]
or eax, dword [edi + 0x14]
jne 0x4022c7
mov ecx, dword [ebp - 0x18]
push ecx
push 0
call fcn.00401250
add esp, 8
jmp 0x4022c7
mov edi, 0x4154e0
mov esi, dword [edi + 8]
test esi, esi
mov dword [ebp - 0x28], edi
jne 0x401810
mov eax, dword [ebx - 4]
sub ebx, 4
push eax
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xf4], esi
mov dword [ebp - 0x44], esi
call fcn.0040cc80
push eax
push 2
call fcn.00401420
add esp, 8
mov byte [ebp - 0x19], 1
jmp 0x401762
lea ecx, [ebp + 1]
mov al, byte [ecx]
test al, al
je 0x401830
mov dl, byte [esi]
add esi, 1
cmp dl, al
jne 0x401827
add ecx, 1
jmp 0x401813
cmp byte [ecx], 0
jne 0x4022af
movzx edx, word [edi + 0x2c]
lea eax, [ebp + 1]
sub ecx, eax
cmp ecx, edx
jl 0x4022af
cmp byte [ebp - 0x19], 0
jne 0x401762
mov eax, dword [edi + 8]
cmp byte [eax], 0x78
mov ebx, dword [ebp - 0x18]
jne 0x40185b
add word [ebx + 0x34], 1
mov edx, dword [edi + 0x14]
mov esi, dword [edi + 0x10]
mov ecx, edx
and ecx, 2
xor eax, eax
or eax, ecx
je 0x4018ac
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov eax, dword [edx + 0x40]
call eax
mov eax, dword [ebp - 0x14]
sub eax, 1
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x14], eax
jg 0x40189f
mov dword [ebp - 0xf4], ecx
mov dword [ebp - 0x44], ecx
lea ecx, [ebp - 0xf4]
push ecx
push 0xd
call fcn.00401580
add esp, 8
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov dword [ebx + 0x18], edx
jmp 0x4016d3
mov ecx, edx
and ecx, 4
xor eax, eax
or eax, ecx
je 0x4018ca
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx]
mov edx, dword [eax + 0x40]
call edx
mov byte [ebx + 0x1c], 1
jmp 0x4016d9
mov ecx, edx
and ecx, 1
xor eax, eax
or eax, ecx
je 0x4018de
mov byte [ebx + 0x1d], 1
jmp 0x4016d9
or esi, edx
jne 0x401908
xor eax, eax
push str.WI_V2.5.2.26540_Firebird_2.5
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x44], eax
call fcn.0040cc80
push eax
push 3
call fcn.00401420
add esp, 8
mov eax, dword [edi + 0x20]
mov esi, dword [ebp - 0x30]
mov ecx, dword [edi + 0x24]
mov ebx, dword [ebp - 0x2c]
and eax, esi
and ecx, ebx
or eax, ecx
jne 0x402287
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x1c]
mov edx, eax
or edx, ecx
je 0x401938
and eax, esi
and ecx, ebx
or eax, ecx
je 0x402287
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
or dword [ebp - 0x2c], eax
or dword [ebp - 0x30], ebx
mov eax, ebx
and eax, 0x1800000
xor ecx, ecx
or eax, ecx
je 0x4019fb
cmp dword [ebp - 0x14], 1
jle 0x4019fb
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
push 0x200
lea eax, [ebp]
push eax
push edx
call fcn.00401270
add esp, 0xc
mov edi, str.normal
lea esi, [ebp]
mov ecx, 7
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x401998
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x5c], 1
jmp 0x4019f3
mov edi, str.multi
lea esi, [ebp]
mov ecx, 6
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4019b7
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x5c], 2
jmp 0x4019f3
mov edi, str.single
lea esi, [ebp]
mov ecx, 7
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4019d6
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x5c], 3
jmp 0x4019f3
mov edi, str.full
lea esi, [ebp]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x4019fb
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x5c], 4
add dword [ebp - 0x20], 4
sub dword [ebp - 0x14], 1
and ebx, 0x20000000
xor eax, eax
xor edi, edi
or ebx, eax
je 0x401ab8
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, edi
mov dword [ebp - 0x14], eax
jg 0x401a34
lea ecx, [ebp - 0xf4]
push ecx
push 6
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.00401580
add esp, 8
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
push 0x200
lea edx, [ebp]
push edx
push eax
call fcn.00401270
lea eax, [ebp]
add esi, 4
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.MSVCR80.dll_atoi]
mov ecx, dword [ebp - 0x18]
add esp, 0x10
cmp eax, edi
mov dword [ecx + 0x30], eax
jne 0x401a94
mov edi, 0x415e70
lea esi, [ebp]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401a94
xor eax, eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0xf4]
push eax
push 7
call fcn.00401580
add esp, 8
mov ecx, dword [ebp - 0x18]
xor edi, edi
cmp dword [ecx + 0x30], edi
jge 0x401ab8
lea edx, [ebp - 0xf4]
push edx
push 0x72
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.00401580
add esp, 8
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
and eax, 0x8000
xor ecx, ecx
or eax, ecx
je 0x401b78
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, edi
mov dword [ebp - 0x14], eax
jg 0x401af4
lea ecx, [ebp - 0xf4]
push ecx
push 9
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.00401580
add esp, 8
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
push 0x200
lea edx, [ebp]
push edx
push eax
call fcn.00401270
lea eax, [ebp]
add esi, 4
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.MSVCR80.dll_atoi]
mov ecx, dword [ebp - 0x18]
add esp, 0x10
cmp eax, edi
mov dword [ecx + 0x28], eax
jne 0x401b54
mov edi, 0x415e70
lea esi, [ebp]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401b54
xor eax, eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0xf4]
push eax
push 7
call fcn.00401580
add esp, 8
mov ecx, dword [ebp - 0x18]
xor edi, edi
cmp dword [ecx + 0x28], edi
jge 0x401b78
lea edx, [ebp - 0xf4]
push edx
push 0x72
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.00401580
add esp, 8
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
and eax, 0x80000000
xor ecx, ecx
or eax, ecx
je 0x401c18
mov eax, dword [ebp - 0x14]
sub eax, 1
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x14], eax
jg 0x401bb6
lea ecx, [ebp - 0xf4]
push ecx
push 0x71
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.00401580
add esp, 8
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
push 0x200
lea edx, [ebp]
push edx
push eax
call fcn.00401270
lea eax, [ebp]
add esi, 4
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.MSVCR80.dll_atoi]
mov ecx, dword [ebp - 0x18]
add esp, 0x10
cmp ax, di
mov word [ecx + 0x58], ax
jne 0x401c18
mov edi, 0x415e70
lea esi, [ebp]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401c18
xor eax, eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0xf4]
push eax
push 7
call fcn.00401580
add esp, 8
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x10]
and eax, 0x400c
xor ecx, ecx
xor edi, edi
or eax, ecx
je 0x401cc8
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, edi
mov dword [ebp - 0x14], eax
jg 0x401c56
lea edx, [ebp - 0xf4]
push edx
push 0xa
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.00401580
add esp, 8
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx]
push 0x200
lea ecx, [ebp]
push ecx
push eax
call fcn.00401270
lea edx, [ebp]
add ebx, 4
push edx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.MSVCR80.dll_atoi]
mov ecx, dword [ebp - 0x18]
add esp, 0x10
cmp eax, edi
mov dword [ecx + 0x2c], eax
jne 0x401ccb
mov edi, 0x415e6c
lea esi, [ebp]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x401cba
xor eax, eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0xf4]
push eax
push 0xa
call fcn.00401580
add esp, 8
xor edi, edi
jmp 0x401ccb
mov ecx, dword [ebp - 0x2c]
or dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], ecx
xor edi, edi
jmp 0x401ccb
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
mov eax, dword [esi + 0x10]
and eax, 0x80000
xor ecx, ecx
or eax, ecx
je 0x401dbc
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, edi
mov dword [ebp - 0x14], eax
jg 0x401d07
lea edx, [ebp - 0xf4]
push edx
push 0xb
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.00401580
add esp, 8
mov eax, dword [ebx]
push 0x200
lea ecx, [ebp]
push ecx
push eax
call fcn.00401270
mov ecx, dword [str.sync]
add esp, 0xc
add ebx, 4
mov dword [ebp - 0x20], ebx
lea eax, [ebp]
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401d50
test dl, dl
je 0x401d4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401d50
add eax, 2
add ecx, 2
test dl, dl
jne 0x401d30
xor eax, eax
jmp 0x401d55
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x401d62
mov edx, dword [ebp - 0x18]
mov byte [edx + 0x1f], 1
jmp 0x401dbc
mov ecx, dword [str.async]
lea eax, [ebp]
jmp 0x401d70
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401d90
test dl, dl
je 0x401d8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401d90
add eax, 2
add ecx, 2
test dl, dl
jne 0x401d70
xor eax, eax
jmp 0x401d95
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x401da2
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x1f], 0
jmp 0x401dbc
lea ecx, [ebp - 0xf4]
push ecx
push 0xb
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.00401580
add esp, 8
mov eax, dword [esi + 0x10]
and eax, 0x100000
xor ecx, ecx
or eax, ecx
je 0x401e64
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, edi
mov dword [ebp - 0x14], eax
jg 0x401df5
lea edx, [ebp - 0xf4]
push edx
push 0xc
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.00401580
add esp, 8
mov eax, dword [ebx]
push 0x200
lea ecx, [ebp]
push ecx
push eax
call fcn.00401270
add ebx, 4
add esp, 0xc
mov edi, str.full
lea esi, [ebp]
mov ecx, 5
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov dword [ebp - 0x20], ebx
jne 0x401e2b
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x1e], 1
jmp 0x401e62
mov edi, str.reserve
lea esi, [ebp]
mov ecx, 8
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x401e46
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x1e], dl
jmp 0x401e62
lea ecx, [ebp - 0xf4]
xor eax, eax
push ecx
push 0xc
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0x44], eax
call fcn.00401580
add esp, 8
xor edi, edi
mov esi, dword [ebp - 0x28]
mov eax, dword [esi + 0x10]
and eax, 0x200000
xor ecx, ecx
or eax, ecx
je 0x401eaa
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, edi
mov dword [ebp - 0x14], eax
jg 0x401e9c
lea edx, [ebp - 0xf4]
push edx
push 0xd
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.00401580
add esp, 8
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
add ebx, 4
mov dword [ecx + 0x10], eax
mov dword [ebp - 0x20], ebx
mov eax, dword [esi + 0x10]
and eax, 0x400000
xor ecx, ecx
or eax, ecx
je 0x401f06
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, edi
mov dword [ebp - 0x14], eax
jg 0x401edf
lea edx, [ebp - 0xf4]
push edx
push 0xe
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.00401580
add esp, 8
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0x60]
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
mov esi, ebx
sub esi, eax
sar esi, 2
push esi
lea eax, [ecx + 4]
push eax
call edx
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x18]
add ebx, 4
mov dword [ecx + 0x14], eax
mov dword [ebp - 0x20], ebx
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + 0x14]
and ecx, 8
xor eax, eax
or eax, ecx
je 0x40202a
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, edi
mov dword [ebp - 0x14], eax
jg 0x401f40
lea eax, [ebp - 0xf4]
push eax
push 0xe
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.00401580
add esp, 8
mov ecx, dword [ebx]
push ecx
lea ecx, [ebp - 0x1dc]
call fcn.004012f0
mov edx, dword [ebp - 0x18]
add edx, 0x14
push edx
lea eax, [ebp - 0x1dc]
push eax
mov byte [ebp - 4], 1
call fcn.0040e050
mov esi, eax
mov eax, dword [ebp - 0x1b8]
lea ecx, [ebp - 0x1d8]
add esp, 8
cmp eax, ecx
mov byte [ebp - 4], 0
je 0x401f8b
cmp eax, edi
je 0x401f8b
mov ecx, dword [eax - 4]
push eax
call fcn.00409d20
mov eax, esi
sub eax, 1
je 0x401fed
sub eax, 1
je 0x401fbc
sub eax, 1
jne 0x402024
mov edx, dword [ebx]
push edx
lea ecx, [ebp - 0xf4]
mov dword [ebp - 0xf4], edi
mov dword [ebp - 0x44], edi
call fcn.0040cc80
push eax
push 0x76
jmp 0x40201c
mov dword [ebp - 0x35c], edi
mov dword [ebp - 0x2ac], edi
call dword [sym.imp.MSVCR80.dll__errno]
mov esi, eax
mov eax, dword [ebx]
push eax
lea ecx, [ebp - 0x35c]
call fcn.0040cc80
mov ecx, dword [esi]
push ecx
mov ecx, eax
call fcn.0040caf0
push eax
push 0x75
jmp 0x40201c
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0xfc], edi
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [ebx]
push edx
lea ecx, [ebp - 0x1ac]
mov esi, eax
call fcn.0040cc80
mov ecx, dword [esi]
push ecx
mov ecx, eax
call fcn.0040caf0
push eax
push 0x74
call fcn.00401580
add esp, 8
add ebx, 4
mov dword [ebp - 0x20], ebx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x10]
and eax, 0x800
xor ecx, ecx
or eax, ecx
je 0x4020b1
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, ecx
mov dword [ebp - 0x14], eax
jg 0x402065
lea eax, [ebp - 0x1ac]
push eax
push 0xf
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 0xfc], ecx
call fcn.00401580
add esp, 8
mov eax, dword [ebx]
push 0x200
lea ecx, [ebp]
push ecx
push eax
call fcn.00401270
add ebx, 4
add esp, 0xc
mov edi, 0x415e60
lea esi, [ebp]
mov ecx, 4
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
mov dword [ebp - 0x20], ebx
je 0x4020b1
xor eax, eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x1ac]
push eax
push 0x10
call fcn.00401580
add esp, 8
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x10]
and eax, 0x1e000000
xor ecx, ecx
xor esi, esi
or eax, ecx
je 0x402182
mov eax, dword [ebp - 0x14]
sub eax, 1
cmp eax, esi
mov dword [ebp - 0x14], eax
jg 0x4020f2
lea edx, [ebp - 0x1ac]
push edx
push 0x11
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0xfc], esi
call fcn.00401580
add esp, 8
mov eax, dword [ebx]
push 0x200
lea ecx, [ebp]
push ecx
push eax
call fcn.00401270
lea edx, [ebp]
add ebx, 4
push edx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.MSVCR80.dll_atoi]
mov ecx, dword [ebp - 0x18]
add esp, 0x10
cmp eax, esi
mov dword [ecx + 0x24], eax
jne 0x402152
mov edi, 0x415e70
lea esi, [ebp]
mov ecx, 2
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x402152
xor eax, eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x1ac]
push eax
push 7
call fcn.00401580
add esp, 8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x24]
xor esi, esi
cmp eax, esi
jl 0x402165
cmp eax, 0x7fff
jle 0x402182
lea edx, [ebp - 0x1ac]
push edx
push 0x12
mov dword [ebp - 0x1ac], esi
mov dword [ebp - 0xfc], esi
call fcn.00401580
add esp, 8
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
and eax, 0x40000000
xor ecx, ecx
or eax, ecx
je 0x4016d9
mov eax, dword [ebp - 0x14]
sub eax, 1
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x14], eax
jg 0x4021c3
lea ecx, [ebp - 0x1ac]
push ecx
push 0x6e
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0xfc], edi
call fcn.00401580
add esp, 8
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
push 0x200
lea edx, [ebp]
push edx
push eax
call fcn.00401270
mov ecx, dword [str.read_only]
add esp, 0xc
add esi, 4
mov dword [ebp - 0x20], esi
lea eax, [ebp]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402210
test dl, dl
je 0x40220c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402210
add eax, 2
add ecx, 2
test dl, dl
jne 0x4021f0
xor eax, eax
jmp 0x402215
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x402225
mov eax, dword [ebp - 0x18]
mov byte [eax + 0x20], 1
jmp 0x4016d9
mov ecx, dword [str.read_write]
lea eax, [ebp]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402250
test dl, dl
je 0x40224c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402250
add eax, 2
add ecx, 2
test dl, dl
jne 0x402230
xor eax, eax
jmp 0x402255
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
jne 0x402265
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 0x20], 0
jmp 0x4016d9
lea edx, [ebp - 0x1ac]
push edx
push 0x6e
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0xfc], edi
call fcn.00401580
add esp, 8
jmp 0x4016d9
xor eax, eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x1ac]
push eax
push 4
call fcn.00401420
add esp, 8
mov byte [ebp - 0x19], 1
jmp 0x401768
add edi, 0x38
jmp 0x4017d7
mov eax, esi
mov ecx, ebx
and eax, 0xff9fffff
and ecx, 0xfffffff0
or eax, ecx
jne 0x4022fd
cmp byte [ebp - 0x21], 0
jne 0x402307
mov edi, dword [ebp - 0x34]
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
test al, al
jne 0x40230a
lea ecx, [ebp - 0x1ac]
xor eax, eax
push ecx
push 0x14
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
call fcn.00401420
add esp, 8
jmp 0x40230a
cmp byte [ebp - 0x19], 0
je 0x4023e3
mov edi, dword [ebp - 0x34]
mov edx, dword [edi]
mov eax, dword [edx]
mov ecx, edi
call eax
test al, al
je 0x40233d
mov edx, dword [edi]
mov edx, dword [edx + 0x30]
xor eax, eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x1ac]
push eax
push 0x14
push 3
mov ecx, edi
call edx
jmp 0x4023d5
xor edi, edi
cmp byte [ebp - 0x21], 0
je 0x402362
lea eax, [ebp - 0x1ac]
push eax
push 0x78
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0xfc], edi
call fcn.00401420
add esp, 8
lea ecx, [ebp - 0x1ac]
push ecx
push 0x15
mov dword [ebp - 0x1ac], edi
mov dword [ebp - 0xfc], edi
call fcn.00401420
add esp, 8
mov edi, 0x4154e0
cmp dword [edi + 8], 0
je 0x4023b6
movzx eax, word [edi + 0x2a]
test ax, ax
je 0x4023b1
lea edx, [ebp - 0x1ac]
xor ecx, ecx
push edx
push eax
mov dword [ebp - 0x1ac], ecx
mov dword [ebp - 0xfc], ecx
call fcn.00401420
add esp, 8
add edi, 0x38
jmp 0x402384
xor eax, eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
lea eax, [ebp - 0x1ac]
push eax
push 0x16
call fcn.00401420
add esp, 8
mov ecx, dword [ebp - 0x18]
push ecx
push 1
call fcn.00401250
add esp, 8
mov edi, dword [ebp - 0x38]
test edi, edi
jne 0x402409
lea edx, [ebp - 0x1ac]
xor eax, eax
push edx
push 0x17
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xfc], eax
call fcn.00401580
add esp, 8
mov eax, esi
push ebx
and eax, 0x400d
xor ecx, ecx
or eax, ecx
push esi
push edi
je 0x4024d2
call fcn.00403be0
mov edi, dword [ebp - 0x18]
movzx eax, ax
add esp, 0xc
mov dword [ebp - 0x38], eax
xor ebx, ebx
cmp word [ebp - 0x38], 1
jne 0x402453
mov ecx, dword [edi + 0xc4]
push ecx
push 1
call fcn.00401480
add esp, 8
push edi
push 1
call fcn.00401250
add esp, 8
push edi
push ebx
call fcn.00401250
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x34]
call fcn.0040ae80
mov edi, dword [ebp - 0x3c]
test edi, edi
je 0x40249b
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
test al, al
je 0x40249b
mov edx, dword [esi]
mov eax, dword [edx + 0x3c]
mov ecx, esi
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc4]
mov edx, dword [esi]
mov edx, dword [edx + 0x34]
push ecx
mov ecx, esi
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xb4]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.00412594
add ebp, 0x204
mov esp, ebp
pop ebp
ret
call fcn.00403e60
mov edi, dword [ebp - 0x18]
movzx ecx, ax
xor ebx, ebx
add esp, 0xc
cmp dword [edi + 0x38], ebx
mov dword [ebp - 0x38], ecx
jne 0x402430
xor cl, cl
xor eax, eax
cmp eax, 8
jge 0x402502
cmp dword [edi + eax*4 + 0x38], ebx
jne 0x40250a
add eax, 1
jmp 0x4024f2
test cl, cl
je 0x402430
lea edx, [ebp - 0x1ac]
push edx
push 0x18
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0xfc], ebx
call fcn.00401420
add esp, 8
xor esi, esi
lea esp, [esp]
cmp esi, 8
jge 0x402430
mov eax, dword [edi + esi*4 + 0x38]
cmp eax, ebx
je 0x40256b
push eax
lea ecx, [ebp - 0x1ac]
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0xfc], ebx
call fcn.0040cb50
push eax
movzx eax, word [esi*2 + 0x415e48]
push eax
call fcn.00401420
add esp, 8
add esi, 1
jmp 0x402530