Function at 0x411470
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov eax, ecx
not eax
and eax, 1
push esi
mov esi, dword [esp + 0x34]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 4]
push edi
xor edi, edi
xor ebp, ebp
xor ebx, ebx
cmp eax, 0x28
mov dword [esp + 0x14], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x24], edi
jle 0x4114b8
add eax, 7
and eax, 0xfffffff8
mov dword [esp + 0x1c], eax
jmp 0x4114c0
mov dword [esp + 0x1c], 0x28
test cl, 2
mov eax, dword [esp + 0x3c]
mov dword [eax], edi
je 0x41168b
mov dword [esp + 0x20], 1
mov dword [esp + 0x40], edi
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x1c]
add edx, 7
and edx, 0xfffffff8
add edx, ebx
lea edx, [edx + ecx*2]
lea eax, [edi + edi*2]
lea eax, [eax + edx + 0x101]
push eax
mov dword [esp + 0x34], eax
call fcn.00406980
mov esi, eax
add esp, 4
test esi, esi
je 0x41179f
mov eax, dword [esp + 0x30]
push eax
push 0
push esi
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x44]
lea eax, [esi + 0xc0]
mov dword [esi + 0xb0], eax
add eax, 0x30
mov dword [esi + 0x3c], eax
mov edx, dword [ecx + 4]
add edx, 7
and edx, 0xfffffff8
add eax, edx
mov edx, dword [esp + 0x28]
mov dword [esi + 0x44], eax
add eax, edx
mov dword [esi + 0x40], eax
add eax, edx
add esp, 0xc
test ebp, ebp
mov dword [esi + 0x90], eax
je 0x411601
push edi
lea ecx, [eax + ebx]
lea edx, [ecx + edi + 1]
push ebp
push eax
mov dword [esi + 0x94], edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esp + 0x30]
mov ecx, dword [esi + 0x90]
add esp, 0xc
push ebx
push eax
lea edx, [ecx + edi + 1]
push edx
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi + 0x94]
add esp, 0xc
push edi
push ebp
push eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi + 0x94]
mov ecx, dword [str._journal]
mov dword [eax + edi], ecx
mov edx, dword [0x474208]
add eax, edi
mov dword [eax + 4], edx
mov cl, byte [0x47420c]
add esp, 0xc
mov byte [eax + 8], cl
mov edx, dword [esi + 0x94]
push edi
lea eax, [edx + edi + 9]
push ebp
push eax
mov dword [esi + 0xb8], eax
call sub.MSVCR80.dll_memcpy
mov eax, dword [esi + 0xb8]
mov ecx, dword [str._wal]
add eax, edi
mov dword [eax], ecx
mov dl, byte [0x474214]
add esp, 0xc
push ebp
mov byte [eax + 4], dl
call fcn.00406c60
mov ecx, dword [esp + 0x3c]
add esp, 4
mov eax, dword [esp + 0x40]
test eax, eax
mov ebx, dword [esp + 0x44]
mov dword [esi], ecx
mov dword [esi + 0x78], ebx
je 0x4117bb
cmp byte [eax], 0
je 0x4117bb
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x90]
lea edi, [esp + 0x40]
push edi
and ebx, 0x87f7f
push ebx
push eax
mov eax, dword [ecx + 0x18]
push edx
push ecx
mov dword [esp + 0x54], 0
call eax
mov ebx, dword [esp + 0x54]
mov edi, eax
add esp, 0x14
and ebx, 1
test edi, edi
jne 0x4117f1
test ebx, ebx
jne 0x4117d2
call fcn.0040ff40
mov eax, dword [esi + 0x7c]
cmp eax, 0x400
jbe 0x4117d2
cmp eax, 0x2000
jbe 0x4117b5
mov dword [esp + 0x18], 0x2000
jmp 0x4117d2
cmp dword [esp + 0x40], edi
je 0x4114db
mov ecx, dword [esp + 0x40]
cmp byte [ecx], bl
je 0x4114db
mov edi, dword [esi + 8]
add edi, 1
lea edx, [edi + edi]
push edx
call fcn.00406980
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4117a8
push ebp
mov byte [ebp], bl
mov ebx, dword [esp + 0x44]
mov eax, dword [esi + 0x24]
push edi
push ebx
push esi
call eax
add esp, 0x10
cmp byte [ebp], 0
mov dword [esp + 0x14], eax
mov edi, ebp
je 0x4116e8
lea esp, [esp]
add edi, 1
cmp byte [edi], 0
jne 0x4116e0
sub edi, ebp
and edi, 0x3fffffff
cmp byte [ebx], 0
mov eax, ebx
je 0x4116ff
add eax, 1
cmp byte [eax], 0
jne 0x4116f7
sub eax, ebx
and eax, 0x3fffffff
cmp byte [eax + ebx + 1], 0
lea edx, [eax + ebx + 1]
mov dword [esp + 0x24], edx
mov ecx, edx
je 0x41175a
cmp byte [ecx], 0
mov eax, ecx
je 0x411728
mov edi, edi
add eax, 1
cmp byte [eax], 0
jne 0x411720
sub eax, ecx
and eax, 0x3fffffff
lea ecx, [ecx + eax + 1]
test ecx, ecx
mov eax, ecx
je 0x41174f
cmp byte [ecx], 0
je 0x411748
mov edi, edi
add eax, 1
cmp byte [eax], 0
jne 0x411740
sub eax, ecx
and eax, 0x3fffffff
cmp byte [ecx + eax + 1], 0
lea ecx, [ecx + eax + 1]
jne 0x411717
sub ecx, edx
add ecx, 1
cmp dword [esp + 0x14], 0
mov ebx, ecx
jne 0x41178a
lea ecx, [edi + 8]
cmp ecx, dword [esi + 8]
jle 0x4114db
mov eax, 0xa733
call fcn.00463d60
test eax, eax
mov dword [esp + 0x14], eax
je 0x4114db
push ebp
call fcn.00406c60
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push ebp
call fcn.00406c60
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov dword [esp + 0x18], eax
jmp 0x4117d2
mov edi, dword [esp + 0x14]
mov dword [esp + 0x28], 1
mov byte [esi + 0xf], 1
mov byte [esi + 0x10], 4
and ebx, 1
test edi, edi
jne 0x4117f1
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
push ecx
mov edi, esi
call fcn.00410b40
add esp, 8
test eax, eax
mov dword [esp + 0x14], eax
je 0x41181c
mov edi, eax
mov ebx, dword [esi + 0x3c]
mov eax, dword [ebx]
test eax, eax
je 0x411809
mov edx, dword [eax + 4]
push ebx
call edx
add esp, 4
mov dword [ebx], 0
push esi
call fcn.00406c60
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [esi + 0xb0]
push 0x30
push 0
push edi
call sub.MSVCR80.dll_memset
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
mov dword [edi + 0x14], eax
xor edx, edx
add esp, 0xc
test ecx, ecx
sete dl
mov eax, ecx
neg eax
sbb eax, eax
not eax
and eax, 0x411380
mov dword [edi + 0x20], eax
mov al, byte [esp + 0x28]
test al, al
mov dword [edi + 0x1c], edx
mov dl, byte [esp + 0x2c]
mov dword [edi + 0x24], esi
mov dword [edi + 0x10], 0x64
mov ebp, 0x50
mov dword [edi + 0x18], ebp
mov byte [esi + 6], dl
mov dword [esi + 0x84], 0x3fffffff
mov byte [esi + 0xc], al
mov byte [esi + 4], al
mov byte [esi + 0x11], al
mov byte [esi + 0xe], cl
mov byte [esi + 0xd], bl
mov byte [esi + 7], al
jne 0x4118a1
mov byte [esi + 8], 1
mov byte [esi + 0xb], 2
mov byte [esi + 0xa], 0x22
mov byte [esi + 9], 2
or eax, 0xffffffff
mov word [esi + 0x74], bp
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
call fcn.0040ff40
cmp dword [esp + 0x2c], 0
jne 0x4118c6
mov byte [esi + 5], 2
jmp 0x4118d1
cmp dword [esp + 0x20], 0
je 0x4118d1
mov byte [esi + 5], 4
mov eax, dword [esp + 0x3c]
pop edi
mov dword [esi + 0xa8], 0x4172f0
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret