Function at 0x409e80
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5264f0
mov eax, dword fs:[0]
push eax
sub esp, 0x5a8
mov eax, dword [0x566090]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5ac], edx
mov eax, ecx
mov dword [ebp - 0x5a8], eax
xor ebx, ebx
mov dword [ebp - 0x5a4], eax
push ebx
push 0x80
push 3
push ebx
push 7
push SysReAllocString
push eax
mov dword [ebp - 0x594], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409f15
lea eax, [ebp - 0x310]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push esi
test eax, eax
je 0x409f0f
mov edi, dword [ebp - 0x2e8]
mov dword [ebp - 0x5a0], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409f1e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or edi, 0xffffffff
mov dword [ebp - 0x5a0], edi
mov dword [ebp - 0x5b0], edi
call fcn.00441aa0
mov eax, dword [eax]
cmp dword [eax], ebx
je 0x40a041
lea eax, [ebp - 0x294]
push eax
call fcn.0040b380
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x594], 1
jb 0x409f58
mov eax, dword [eax]
mov dword [ebp - 0x598], eax
lea edx, [ebp - 0x598]
lea eax, [ebp - 0x5a4]
push eax
lea eax, [ebp - 0x5b0]
push eax
lea ecx, [ebp - 0x260]
call fcn.0041d510
add esp, 8
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x230]
push eax
mov dword [ebp - 0x594], 3
call fcn.00444e70
mov dword [ebp - 4], 2
lea edi, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x38c]
mov ebx, 0x800007
mov dword [ebp - 0x23c], 0x290028
cmovae edi, dword [ebp - 0x230]
mov edx, 0x543c30
mov dword [ebp - 0x594], ebx
mov dword [ebp - 0x238], 0x2d0020
mov dword [ebp - 0x234], 0x20
call fcn.0041d030
mov edx, str._BDREINIT__::
lea ecx, [ebp - 0x2dc]
mov esi, eax
call fcn.00419450
push esi
mov edx, eax
lea ecx, [ebp - 0x3f4]
call fcn.0041d160
lea ecx, [ebp - 0x23c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x468]
call fcn.0041d310
mov esi, eax
call fcn.00441aa0
push edi
push 0
push esi
push 0
push eax
call fcn.0043ebb0
mov edi, dword [ebp - 0x5a0]
add esp, 0x1c
mov dword [ebp - 4], 1
test bl, 4
je 0x40a0ad
mov edx, dword [ebp - 0x21c]
and ebx, 0xfffffffb
cmp edx, 8
jb 0x40a090
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a086
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b363
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 0
test bl, 2
je 0x40a119
mov edx, dword [ebp - 0x24c]
and ebx, 0xfffffffd
cmp edx, 8
jb 0x40a0fc
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a0f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b363
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40a168
mov edx, dword [ebp - 0x280]
and ebx, 0xfffffffe
cmp edx, 8
jb 0x40a168
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a15e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b363
push edx
push ecx
call fcn.004fc7e0
add esp, 8
cmp edi, 1
jne 0x40a1a3
mov ecx, dword [ebp - 0x5a8]
mov edx, ecx
lea esi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a180
sub edx, esi
sar edx, 1
push edx
push ecx
mov ecx, dword [ebp - 0x5ac]
call fcn.00445880
mov al, 1
jmp 0x40a782
cmp edi, 0xffffffff
je 0x40a780
call fcn.00441aa0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x40a32f
xor eax, eax
mov dword [ebp - 0x2bc], 0x80658073
lea edx, [ebp - 0x2bc]
mov dword [ebp - 0x2b8], 0x80728061
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x2b4], 0x80688063
mov dword [ebp - 0x2b0], 0x806e8069
mov dword [ebp - 0x2ac], 0x80208067
mov dword [ebp - 0x2a8], 0x806e8069
mov dword [ebp - 0x2a4], 0x807b8020
mov dword [ebp - 0x2a0], 0x8000807d
mov word [ebp - 0x29c], ax
call fcn.00419a70
or ebx, 0x1000000
mov dword [ebp - 4], 3
lea eax, [ebp - 0x278]
or ebx, 8
lea edx, [ebp - 0x598]
cmp dword [ebp - 0x264], 8
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x594], ebx
cmovae eax, dword [ebp - 0x278]
mov dword [ebp - 0x598], eax
lea eax, [ebp - 0x5a4]
push eax
call fcn.0041cd30
add esp, 4
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x230]
or ebx, 0x10
push eax
mov dword [ebp - 0x594], ebx
call fcn.00444e70
or ebx, 0x2000000
mov dword [ebp - 4], 5
lea edi, [ebp - 0x230]
or ebx, 0x20
mov dword [ebp - 0x23c], 0x290028
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x38c]
mov edx, 0x543c30
mov dword [ebp - 0x594], ebx
cmovae edi, dword [ebp - 0x230]
mov dword [ebp - 0x238], 0x2d0020
mov dword [ebp - 0x234], 0x20
call fcn.0041d030
mov edx, str._BDREINIT__::
lea ecx, [ebp - 0x298]
mov esi, eax
call fcn.00419450
push esi
mov edx, eax
lea ecx, [ebp - 0x3f4]
call fcn.0041d160
lea ecx, [ebp - 0x23c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x468]
call fcn.0041d310
mov esi, eax
call fcn.00441aa0
push edi
push 0
push esi
push 0
push eax
call fcn.0043ebb0
add esp, 0x1c
mov dword [ebp - 4], 4
test bl, 0x20
je 0x40a39b
mov edx, dword [ebp - 0x21c]
and ebx, 0xffffffdf
cmp edx, 8
jb 0x40a37e
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a374
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b368
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 3
test bl, 0x10
je 0x40a407
mov edx, dword [ebp - 0x24c]
and ebx, 0xffffffef
cmp edx, 8
jb 0x40a3ea
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a3e0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b368
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], 0xffffffff
test bl, 8
je 0x40a456
mov edx, dword [ebp - 0x264]
and ebx, 0xfffffff7
cmp edx, 8
jb 0x40a456
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a44c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b368
push edx
push ecx
call fcn.004fc7e0
add esp, 8
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x40a780
lea eax, [ebp - 0x598]
mov ecx, esi
push eax
call fcn.0041d5b0
add esp, 4
test al, al
je 0x40a780
lea eax, [ebp - 0x5b4]
mov ecx, esi
push eax
call fcn.0041d770
add esp, 4
test al, al
je 0x40a780
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x5a4], 0
push 0
push eax
call fcn.004feb20
mov ecx, dword [ebp - 0x5a8]
lea eax, [ebp - 0x218]
add esp, 0xc
mov dword [ebp - 0x5a0], 0x104
push eax
lea eax, [ebp - 0x5a0]
push eax
push 0
push ecx
call dword [ebp - 0x598]
mov dword [ebp - 0x5b0], eax
cmp eax, 0xffffffff
jne 0x40a79e
call fcn.00441aa0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x40a669
lea edx, [ebp - 0x2bc]
mov dword [ebp - 0x2bc], 0x806e8049
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x2b8], 0x80618076
mov dword [ebp - 0x2b4], 0x8069806c
mov dword [ebp - 0x2b0], 0x80208064
mov dword [ebp - 0x2ac], 0x80618068
mov dword [ebp - 0x2a8], 0x8064806e
mov dword [ebp - 0x2a4], 0x8065806c
mov dword [ebp - 0x2a0], 0x8000
call fcn.00419a70
or ebx, 0x4000000
mov dword [ebp - 4], 6
lea eax, [ebp - 0x278]
or ebx, 0x40
lea edx, [ebp - 0x598]
cmp dword [ebp - 0x264], 8
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x594], ebx
cmovae eax, dword [ebp - 0x278]
mov dword [ebp - 0x598], eax
call fcn.0041ccb0
mov dword [ebp - 4], 7
lea ecx, [ebp - 0x230]
or ebx, 0x80
push eax
mov dword [ebp - 0x594], ebx
call fcn.00444e70
or ebx, 0x8000000
mov dword [ebp - 4], 8
lea edi, [ebp - 0x230]
or ebx, 0x100
mov dword [ebp - 0x23c], 0x290028
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x38c]
mov edx, 0x543c30
mov dword [ebp - 0x594], ebx
cmovae edi, dword [ebp - 0x230]
mov dword [ebp - 0x238], 0x2d0020
mov dword [ebp - 0x234], 0x20
call fcn.0041d030
mov edx, str._BDREINIT__::
lea ecx, [ebp - 0x298]
mov esi, eax
call fcn.00419450
push esi
mov edx, eax
lea ecx, [ebp - 0x3f4]
call fcn.0041d160
lea ecx, [ebp - 0x23c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x468]
call fcn.0041d310
mov esi, eax
call fcn.00441aa0
push edi
push 0
push esi
push 0
push eax
call fcn.0043ebb0
add esp, 0x1c
test ebx, 0x100
je 0x40a6d4
mov edx, dword [ebp - 0x21c]
and ebx, 0xfffffeff
cmp edx, 8
jb 0x40a6b7
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a6ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b36d
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
test bl, bl
jns 0x40a73b
mov edx, dword [ebp - 0x24c]
and ebx, 0xffffff7f
cmp edx, 8
jb 0x40a71e
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a714
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b36d
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
test bl, 0x40
je 0x40a780
mov edx, dword [ebp - 0x264]
cmp edx, 8
jb 0x40a780
mov ecx, dword [ebp - 0x278]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a776
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b36d
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004fc7af
mov esp, ebp
pop ebp
ret
call fcn.00441aa0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x40a90d
lea edx, [ebp - 0x278]
mov dword [ebp - 0x278], 0x806f8063
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x274], 0x806e8075
mov dword [ebp - 0x270], 0x80208074
mov dword [ebp - 0x26c], 0x8020803d
mov dword [ebp - 0x268], 0x807d807b
mov dword [ebp - 0x264], 0x8000
call fcn.00419a70
or ebx, 0x10000000
mov dword [ebp - 4], 9
lea eax, [ebp - 0x2d8]
or ebx, 0x200
lea edx, [ebp - 0x598]
cmp dword [ebp - 0x2c4], 8
lea ecx, [ebp - 0x260]
mov dword [ebp - 0x594], ebx
cmovae eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x598], eax
lea eax, [ebp - 0x5a0]
push eax
call fcn.0041d930
add esp, 4
mov dword [ebp - 4], 0xa
lea ecx, [ebp - 0x230]
or ebx, 0x400
push eax
mov dword [ebp - 0x594], ebx
call fcn.00444e70
or ebx, 0x20000000
mov dword [ebp - 4], 0xb
lea edi, [ebp - 0x230]
or ebx, 0x800
mov dword [ebp - 0x23c], 0x290028
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x38c]
mov edx, 0x543c30
mov dword [ebp - 0x594], ebx
cmovae edi, dword [ebp - 0x230]
mov dword [ebp - 0x238], 0x2d0020
mov dword [ebp - 0x234], 0x20
call fcn.0041d030
mov edx, str._BDREINIT__::
lea ecx, [ebp - 0x298]
mov esi, eax
call fcn.00419450
push esi
mov edx, eax
lea ecx, [ebp - 0x3f4]
call fcn.0041d160
lea ecx, [ebp - 0x23c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x468]
call fcn.0041d310
mov esi, eax
call fcn.00441aa0
push edi
push 0
push esi
push 0
push eax
call fcn.0043ebb0
add esp, 0x1c
mov dword [ebp - 4], 0xa
test ebx, 0x800
je 0x40a97f
mov edx, dword [ebp - 0x21c]
and ebx, 0xfffff7ff
cmp edx, 8
jb 0x40a962
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a958
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b372
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov dword [ebp - 4], 9
test ebx, 0x400
je 0x40a9f1
mov edx, dword [ebp - 0x24c]
and ebx, 0xfffffbff
cmp edx, 8
jb 0x40a9d4
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40a9ca
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b372
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], 0xffffffff
test ebx, 0x200
je 0x40aa46
mov edx, dword [ebp - 0x2c4]
and ebx, 0xfffffdff
cmp edx, 8
jb 0x40aa46
mov ecx, dword [ebp - 0x2d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aa3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b372
push edx
push ecx
call fcn.004fc7e0
add esp, 8
call fcn.00441aa0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x40abaf
lea edx, [ebp - 0x230]
mov dword [ebp - 0x230], 0x80468063
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x22c], 0x806c806f
mov dword [ebp - 0x228], 0x80658064
mov dword [ebp - 0x224], 0x80208072
mov dword [ebp - 0x220], 0x807d807b
mov dword [ebp - 0x21c], 0x8000
call fcn.00419a70
or ebx, 0x40000000
mov dword [ebp - 4], 0xc
lea eax, [ebp - 0x294]
or ebx, 0x1000
lea edx, [ebp - 0x598]
cmp dword [ebp - 0x280], 8
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x594], ebx
cmovae eax, dword [ebp - 0x294]
mov dword [ebp - 0x598], eax
lea eax, [ebp - 0x218]
push eax
call fcn.0041d9c0
add esp, 4
mov dword [ebp - 4], 0xd
lea ecx, [ebp - 0x260]
or ebx, 0x2000
push eax
mov dword [ebp - 0x594], ebx
call fcn.00444e70
mov dword [ebp - 4], 0xe
lea edi, [ebp - 0x260]
or ebx, 0x4000
mov dword [ebp - 0x23c], 0x290028
cmp dword [ebp - 0x24c], 8
lea ecx, [ebp - 0x38c]
mov edx, 0x543c30
mov dword [ebp - 0x594], ebx
cmovae edi, dword [ebp - 0x260]
mov dword [ebp - 0x238], 0x2d0020
mov dword [ebp - 0x234], 0x20
call fcn.0041d030
mov edx, str._BDREINIT__::
lea ecx, [ebp - 0x2b8]
mov esi, eax
call fcn.00419450
push esi
mov edx, eax
lea ecx, [ebp - 0x3f4]
call fcn.0041d160
lea ecx, [ebp - 0x23c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x468]
call fcn.0041d310
mov esi, eax
call fcn.00441aa0
push edi
push 0
push esi
push 0
push eax
call fcn.0043ebb0
add esp, 0x1c
mov dword [ebp - 4], 0xd
test ebx, 0x4000
je 0x40ac21
mov edx, dword [ebp - 0x24c]
and ebx, 0xffffbfff
cmp edx, 8
jb 0x40ac04
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40abfa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b363
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], 0xc
test ebx, 0x2000
je 0x40ac93
mov edx, dword [ebp - 0x2c4]
and ebx, 0xffffdfff
cmp edx, 8
jb 0x40ac76
mov ecx, dword [ebp - 0x2d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40ac6c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b363
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x2c8], 0
mov dword [ebp - 0x2c4], 7
mov word [ebp - 0x2d8], ax
mov dword [ebp - 4], 0xffffffff
test ebx, 0x1000
je 0x40ace8
mov edx, dword [ebp - 0x280]
and ebx, 0xffffefff
cmp edx, 8
jb 0x40ace8
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40acde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b363
push edx
push ecx
call fcn.004fc7e0
add esp, 8
push 2
lea edx, [ebp - 0x218]
lea ecx, [ebp - 0x5a8]
call fcn.00403c90
add esp, 4
mov dword [ebp - 4], 0xf
call fcn.00441aa0
mov esi, dword [ebp - 0x5a8]
mov eax, dword [eax]
cmp dword [eax], 0
je 0x40aea0
cmp esi, 0xffffffff
je 0x40ad28
test esi, esi
je 0x40ad28
mov al, 1
jmp 0x40ad2a
xor al, al
lea edx, [ebp - 0x2fc]
mov byte [ebp - 0x599], al
lea ecx, [ebp - 0x2d8]
mov dword [ebp - 0x2fc], 0x806e8069
mov dword [ebp - 0x2f8], 0x80738075
mov dword [ebp - 0x2f4], 0x80208065
mov dword [ebp - 0x2f0], 0x80618076
mov dword [ebp - 0x2ec], 0x8069806c
mov dword [ebp - 0x2e8], 0x80208064
mov dword [ebp - 0x2e4], 0x807d807b
mov dword [ebp - 0x2e0], 0x8000
call fcn.00419a70
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x2d8]
or ebx, 0x8000
lea edx, [ebp - 0x598]
cmp dword [ebp - 0x2c4], 8
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x594], ebx
cmovae eax, dword [ebp - 0x2d8]
mov dword [ebp - 0x598], eax
lea eax, [ebp - 0x599]
push eax
call fcn.0041da40
add esp, 4
mov dword [ebp - 4], 0x11
lea ecx, [ebp - 0x260]
or ebx, 0x10000
push eax
mov dword [ebp - 0x594], ebx
call fcn.00444e70
mov dword [ebp - 4], 0x12
lea ecx, [ebp - 0x38c]
or ebx, 0x20000
mov dword [ebp - 0x26c], 0x290028
cmp dword [ebp - 0x24c], 8
mov edx, 0x543c30
mov dword [ebp - 0x598], ebx
mov dword [ebp - 0x594], ebx
lea ebx, [ebp - 0x260]
cmovae ebx, dword [ebp - 0x260]
mov dword [ebp - 0x268], 0x2d0020
mov dword [ebp - 0x264], 0x20
call fcn.0041d030
mov edx, str._BDREINIT__::
lea ecx, [ebp - 0x2b8]
mov edi, eax
call fcn.00419450
push edi
mov edx, eax
lea ecx, [ebp - 0x3f4]
call fcn.0041d160
lea ecx, [ebp - 0x26c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x468]
call fcn.0041d310
mov edi, eax
call fcn.00441aa0
push ebx
push 0
push edi
push 0
push eax
call fcn.0043ebb0
mov ebx, dword [ebp - 0x598]
add esp, 0x1c
mov dword [ebp - 4], 0x11
test ebx, 0x20000
je 0x40af12
mov edx, dword [ebp - 0x24c]
and ebx, 0xfffdffff
cmp edx, 8
jb 0x40aef5
mov ecx, dword [ebp - 0x260]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40aeeb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b363
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 7
mov word [ebp - 0x260], ax
mov dword [ebp - 4], 0x10
test ebx, 0x10000
je 0x40af84
mov edx, dword [ebp - 0x280]
and ebx, 0xfffeffff
cmp edx, 8
jb 0x40af67
mov ecx, dword [ebp - 0x294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40af5d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b363
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x284], 0
mov dword [ebp - 0x280], 7
mov word [ebp - 0x294], ax
mov dword [ebp - 4], 0xf
test ebx, 0x8000
je 0x40afd9
mov edx, dword [ebp - 0x2c4]
and ebx, 0xffff7fff
cmp edx, 8
jb 0x40afd9
mov ecx, dword [ebp - 0x2d8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40afcf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b363
push edx
push ecx
call fcn.004fc7e0
add esp, 8
cmp esi, 0xffffffff
je 0x40b03c
test esi, esi
je 0x40b03c
mov eax, dword [ebp - 0x5a4]
test eax, eax
jg 0x40b090
inc eax
mov dword [ebp - 0x5a4], eax
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b000
mov ecx, dword [ebp - 0x5ac]
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00445880
test esi, esi
je 0x40b03c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x5a8], 0xffffffff
push 0
push eax
call fcn.004feb20
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x218]
mov dword [ebp - 0x5a0], 0x104
push eax
lea eax, [ebp - 0x5a0]
push eax
push dword [ebp - 0x5b0]
call dword [ebp - 0x5b4]
test eax, eax
je 0x40b0a9
jmp 0x40aa46
mov ecx, dword [ebp - 0x5ac]
call fcn.00443db0
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00441aa0
mov eax, dword [eax]
cmp dword [eax], 0
je 0x40b22b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x5b4], eax
lea edx, [ebp - 0x298]
xor eax, eax
mov dword [ebp - 0x298], 0x8061806c
lea ecx, [ebp - 0x340]
mov dword [ebp - 0x294], 0x80748073
mov dword [ebp - 0x290], 0x80658020
mov dword [ebp - 0x28c], 0x80728072
mov dword [ebp - 0x288], 0x8072806f
mov dword [ebp - 0x284], 0x807b8020
mov dword [ebp - 0x280], 0x8000807d
mov word [ebp - 0x27c], ax
call fcn.00419a70
mov dword [ebp - 4], 0x13
lea eax, [ebp - 0x340]
or ebx, 0x40000
lea edx, [ebp - 0x598]
cmp dword [ebp - 0x32c], 8
lea ecx, [ebp - 0x328]
mov dword [ebp - 0x594], ebx
cmovae eax, dword [ebp - 0x340]
mov dword [ebp - 0x598], eax
lea eax, [ebp - 0x5b4]
push eax
call fcn.0041d930
add esp, 4
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x248]
or ebx, 0x80000
push eax
mov dword [ebp - 0x594], ebx
call fcn.00444e70
mov dword [ebp - 4], 0x15
lea edi, [ebp - 0x248]
or ebx, 0x100000
mov dword [ebp - 0x26c], 0x290028
cmp dword [ebp - 0x234], 8
lea ecx, [ebp - 0x4b4]
mov edx, 0x543c30
mov dword [ebp - 0x594], ebx
cmovae edi, dword [ebp - 0x248]
mov dword [ebp - 0x268], 0x2d0020
mov dword [ebp - 0x264], 0x20
call fcn.0041d030
mov edx, str._BDREINIT__::
lea ecx, [ebp - 0x2fc]
mov esi, eax
call fcn.00419450
push esi
mov edx, eax
lea ecx, [ebp - 0x51c]
call fcn.0041d160
lea ecx, [ebp - 0x26c]
mov edx, eax
push ecx
lea ecx, [ebp - 0x590]
call fcn.0041d310
mov esi, eax
call fcn.00441aa0
push edi
push 0
push esi
push 0
push eax
call fcn.0043ebb0
add esp, 0x1c
test ebx, 0x100000
je 0x40b296
mov edx, dword [ebp - 0x234]
and ebx, 0xffefffff
cmp edx, 8
jb 0x40b279
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b26f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b377
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
test ebx, 0x80000
je 0x40b301
mov edx, dword [ebp - 0x314]
and ebx, 0xfff7ffff
cmp edx, 8
jb 0x40b2e4
mov ecx, dword [ebp - 0x328]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b2da
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b377
push edx
push ecx
call fcn.004fc7e0
add esp, 8
xor eax, eax
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x314], 7
mov word [ebp - 0x328], ax
test ebx, 0x40000
je 0x40b345
mov edx, dword [ebp - 0x32c]
cmp edx, 8
jb 0x40b345
mov ecx, dword [ebp - 0x340]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b33b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b377
push edx
push ecx
call fcn.004fc7e0
add esp, 8
push dword [ebp - 0x5b0]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x5ac]
cmp dword [eax + 0x10], 0
setne al
jmp 0x40a782
call fcn.0050175f
call fcn.0050175f
call fcn.0050175f
call fcn.0050175f
call fcn.0050175f
int3