Function at 0x4012a0
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42e379
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x438300]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push esi
push edi
mov eax, dword [0x438300]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x14], edi
je 0x401527
test esi, esi
je 0x40135d
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401303
sub eax, edx
mov dword [edi + 0x1c], eax
cmp dword [ebx + 0x10], 0
je 0x401343
push esi
mov ebx, eax
call fcn.004039f0
mov edx, edi
add esp, 4
mov dword [edx], eax
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401327
mov ebx, dword [esp + 0x44]
sub eax, esi
sar eax, 1
add eax, eax
mov dword [edx + 0x1c], eax
mov edi, edx
jmp 0x40135d
inc eax
push eax
call fcn.00414fa9
add esp, 4
mov dword [edi], eax
mov ecx, esi
mov edx, eax
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x401353
xor eax, eax
cmp dword [ebx + 0x10], eax
setne al
inc eax
add eax, dword [edi + 0x1c]
add eax, dword [ebx + 0x44]
cmp eax, 0xbe0
mov dword [esp + 0x48], eax
jg 0x401527
mov eax, dword [ebp + 0x14]
test eax, eax
jl 0x401391
mov ecx, dword [ebx + 8]
push 0
push eax
push ecx
call fcn.00414d74
add esp, 0xc
mov edx, dword [ebx + 8]
push edx
push 1
lea eax, [esp + 0x90]
push 0x20
push eax
call fcn.004148a9
push 4
lea ecx, [esp + 0x9c]
push str.NOD
push ecx
call fcn.00413905
add esp, 0x1c
test eax, eax
jne 0x401889
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov byte [esp + 0xb8], 1
cmp word [esp + 0x9c], ax
je 0x40163d
movsx edx, word [esp + 0x9e]
mov eax, dword [ebp + 0x14]
push 2
lea ecx, [esp + 0x3c]
lea eax, [edx + eax - 2]
push ecx
mov esi, ebx
call fcn.00404180
mov edx, dword [ebx + 8]
movzx edi, word [esp + 0x38]
push edx
lea esi, [esp + 0x1c]
call fcn.00401020
cmp dword [ebx + 0x10], 0
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
push eax
je 0x40143a
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00427f73
jmp 0x401444
mov edx, dword [esp + 0x1c]
push edx
call fcn.0042514c
add esp, 8
test eax, eax
jle 0x401551
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x8c]
test ecx, ecx
je 0x4014f5
test eax, eax
jne 0x4014f9
movsx eax, word [esp + 0x98]
cmp eax, dword [esp + 0x48]
jge 0x401531
mov esi, dword [ebp + 0x14]
push esi
lea edx, [esp + 0x90]
mov ecx, ebx
call fcn.00403f80
mov edi, eax
test edi, edi
jne 0x4014c9
push 4
lea ecx, [esp + 0x90]
lea eax, [esi + 4]
push ecx
mov esi, ebx
call fcn.00404140
mov edi, eax
test edi, edi
jne 0x4014c9
mov edx, dword [esp + 0x8c]
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
push 0
mov ecx, ebx
call fcn.004012a0
mov edi, eax
lea esi, [esp + 0x20]
mov byte [esp + 0xb8], 0
call fcn.00401000
lea esi, [esp + 0x18]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00401000
mov eax, edi
jmp 0x4020ce
test eax, eax
je 0x401502
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
jmp 0x4014be
lea esi, [esp + 0x20]
mov byte [esp + 0xb8], 0
call fcn.00401000
lea esi, [esp + 0x18]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00401000
mov eax, 4
jmp 0x4020ce
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x88]
push eax
push ecx
push 0
push 1
mov ecx, ebx
call fcn.004041c0
jmp 0x4014c7
movsx edx, word [esp + 0x9a]
mov eax, dword [ebp + 0x14]
push 2
lea ecx, [esp + 0x3c]
lea eax, [edx + eax - 2]
push ecx
mov esi, ebx
call fcn.00404180
mov edx, dword [ebx + 8]
movzx edi, word [esp + 0x38]
push edx
lea esi, [esp + 0x24]
call fcn.00401020
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x20]
mov edx, ebx
call fcn.00401280
test eax, eax
jge 0x40163d
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x94]
test ecx, ecx
je 0x401609
test eax, eax
jne 0x401611
movsx ecx, word [esp + 0x98]
cmp ecx, dword [esp + 0x48]
jge 0x40161d
mov esi, dword [ebp + 0x14]
push esi
lea edx, [esp + 0x98]
mov ecx, ebx
call fcn.00403f80
mov edi, eax
test edi, edi
jne 0x4014c9
push 4
lea edx, [esp + 0x98]
lea eax, [esi + 0xc]
push edx
mov esi, ebx
call fcn.00404140
mov edi, eax
test edi, edi
jne 0x4014c9
mov eax, dword [esp + 0x94]
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x14]
push eax
push ecx
push edx
jmp 0x4014be
test eax, eax
je 0x401502
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
jmp 0x4014be
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x88]
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push 0
mov ecx, ebx
call fcn.004041c0
jmp 0x4014c7
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x14]
mov byte [esp + 0xb8], 2
mov edi, dword [ebx + 8]
add eax, 0x20
lea esi, [esp + 0x2c]
mov dword [esp + 0x5c], eax
call fcn.00401080
cmp dword [ebp + 0x10], 0
je 0x401676
movsx eax, word [esp + 0x9c]
inc eax
jmp 0x401678
xor eax, eax
push eax
mov ecx, 0x10
lea ebx, [esp + 0x50]
call fcn.004056c0
mov byte [esp + 0xb8], 3
mov ax, word [esp + 0x9c]
xor edi, edi
xor ecx, ecx
cmp cx, ax
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edi
jge 0x401893
mov edx, dword [esp + 0x4c]
add edx, 8
mov dword [esp + 0x28], edx
jmp 0x4016c0
mov ebx, dword [esp + 0x44]
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4016dc
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x3c]
lea esi, [eax + edi]
mov dword [esp + 0x38], esi
jmp 0x4016ea
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x38]
add edx, edi
mov dword [esp + 0x3c], edx
test ecx, ecx
je 0x4016f4
movzx eax, word [esi + 0x1a]
jmp 0x4016f8
movzx eax, word [edx + 0x16]
test ax, ax
je 0x40180e
test ecx, ecx
je 0x40170b
movzx eax, word [esi + 0x1a]
jmp 0x40170f
movzx eax, word [edx + 0x16]
mov edx, 0x3e80
cmp ax, dx
ja 0x40180e
mov esi, dword [ebx + 0x44]
add esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
add esi, edi
push eax
push esi
test ecx, ecx
je 0x401739
call fcn.00427f73
jmp 0x40173e
call fcn.0042514c
add esp, 8
test eax, eax
je 0x40179f
cmp dword [ebx + 0x10], 0
je 0x401755
mov ecx, dword [esp + 0x38]
movzx eax, word [ecx + 0x1a]
jmp 0x40175d
mov edx, dword [esp + 0x3c]
movzx eax, word [edx + 0x16]
mov ecx, dword [esp + 0x28]
movzx eax, ax
add eax, dword [ebx + 0x44]
cmp dword [ebp + 0x10], 0
je 0x401775
mov dword [ecx - 8], esi
mov dword [ecx - 4], edi
mov dword [ecx], eax
mov edx, dword [esp + 0x34]
add ecx, 0x14
add edi, eax
mov ax, word [esp + 0x9c]
mov dword [esp + 0x28], ecx
movsx ecx, ax
inc edx
cmp edx, ecx
mov dword [esp + 0x34], edx
jl 0x4016c0
jmp 0x401897
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x40]
mov eax, ebx
call fcn.00404470
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov dword [ecx + 0x10], eax
lea eax, [edi + eax + 0x20]
mov dword [ecx + 0x18], eax
lea eax, [esp + 0x4c]
mov byte [esp + 0xb8], 2
call fcn.00405780
lea esi, [esp + 0x2c]
mov byte [esp + 0xb8], 1
call fcn.00401000
lea esi, [esp + 0x20]
mov byte [esp + 0xb8], 0
call fcn.00401000
lea esi, [esp + 0x18]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00401000
jmp 0x4020cc
mov byte [esp + 0xb8], 2
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40183b
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push 0x401190
push ecx
push 0x14
push eax
call fcn.0041426e
push esi
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x401854
push eax
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40186d
push eax
call fcn.004148f0
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401889
push eax
call fcn.004148f0
add esp, 4
mov eax, 2
jmp 0x4020ce
mov ebx, dword [esp + 0x44]
cmp dword [ebp + 0x10], 0
mov esi, dword [esp + 0x4c]
jne 0x401926
mov byte [esp + 0xb8], 2
test esi, esi
je 0x4018ce
mov edx, dword [esi - 4]
push 0x401190
lea edi, [esi - 4]
push edx
push 0x14
push esi
call fcn.0041426e
push edi
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4018e7
push eax
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401900
push eax
call fcn.004148f0
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40191c
push eax
call fcn.004148f0
add esp, 4
mov eax, 4
jmp 0x4020ce
movsx edx, word [esp + 0x98]
mov ecx, dword [esp + 0x48]
cmp edx, ecx
mov edx, dword [esp + 0x14]
jl 0x4019d5
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x88]
push eax
push ecx
push 0
push 0
mov ecx, ebx
call fcn.004041c0
mov ebx, eax
mov byte [esp + 0xb8], 2
test esi, esi
je 0x401980
mov edx, dword [esi - 4]
push 0x401190
lea edi, [esi - 4]
push edx
push 0x14
push esi
call fcn.0041426e
push edi
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x401999
push eax
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4019b2
push eax
call fcn.004148f0
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4019ce
push eax
call fcn.004148f0
add esp, 4
mov eax, ebx
jmp 0x4020ce
mov edx, dword [edx]
mov edi, dword [esp + 0x50]
cwde
lea eax, [eax + eax*4]
mov dword [esi + eax*4], edx
movsx eax, word [esp + 0x9c]
lea eax, [eax + eax*4]
mov dword [esi + eax*4 + 4], 0xffffffff
movsx eax, word [esp + 0x9c]
push 0x4011b0
push 0x14
lea edx, [eax + eax*4]
mov dword [esi + edx*4 + 8], ecx
sub word [esp + 0xa0], cx
inc word [esp + 0xa4]
push edi
push esi
mov dword [0x43ae08], ebx
call fcn.00413a90
add esp, 0x10
cmp dword [esp + 0x94], 0
jne 0x401a9f
mov eax, dword [ebp + 0x14]
push eax
lea edx, [esp + 0x98]
mov ecx, ebx
call fcn.00403f80
mov dword [esp + 0x34], eax
test eax, eax
je 0x401a9f
lea eax, [esp + 0x4c]
mov byte [esp + 0xb8], 2
call fcn.00405780
lea esi, [esp + 0x2c]
mov byte [esp + 0xb8], 1
call fcn.00401000
lea esi, [esp + 0x20]
mov byte [esp + 0xb8], 0
call fcn.00401000
lea esi, [esp + 0x18]
mov dword [esp + 0xb8], 0xffffffff
call fcn.00401000
mov eax, dword [esp + 0x34]
jmp 0x4020ce
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x3c], 0
test edi, edi
jle 0x401d29
lea edx, [esi + 4]
mov dword [esp + 0x28], edx
mov edi, dword [esp + 0x28]
cmp dword [edi], 0xffffffff
jne 0x401b6f
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
push eax
push 1
push ecx
push 0
mov ecx, ebx
call fcn.004012a0
mov edi, eax
test edi, edi
je 0x401c1e
mov byte [esp + 0xb8], 2
test esi, esi
je 0x401b16
mov eax, dword [esi - 4]
push 0x401190
lea ebx, [esi - 4]
push eax
push 0x14
push esi
call fcn.0041426e
push ebx
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x401b2f
push eax
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401b48
push eax
call fcn.004148f0
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4014ee
push eax
call fcn.004148f0
add esp, 4
mov eax, edi
jmp 0x4020ce
mov edx, dword [edi]
add edx, dword [esp + 0x2c]
xor eax, eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
push edx
lea esi, [esp + 0x64]
mov eax, ebx
call fcn.00404470
mov eax, dword [edi]
mov edi, dword [esp + 0x2c]
mov esi, dword [ebx + 0x10]
add eax, edi
add eax, dword [ebx + 0x44]
mov dword [esp + 0x60], eax
test esi, esi
je 0x401be1
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401bd0
sub eax, edx
sar eax, 1
jmp 0x401bed
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401be4
sub eax, edx
xor edx, edx
test esi, esi
setne dl
lea ecx, [esp + 0x60]
inc edx
imul edx, eax
mov eax, dword [esp + 0x34]
push eax
push 1
push ecx
push 0
mov ecx, ebx
mov dword [esp + 0x8c], edx
call fcn.004012a0
mov esi, eax
test esi, esi
jne 0x401ca7
mov edi, dword [ebx + 0x10]
mov esi, dword [esp + 0x28]
mov eax, dword [esi - 4]
test edi, edi
je 0x401c41
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401c30
sub eax, edx
sar eax, 1
jmp 0x401c4d
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c44
sub eax, edx
xor edx, edx
test edi, edi
setne dl
inc eax
inc edx
imul dx, ax
add dx, word [ebx + 0x44]
add word [esp + 0x98], dx
mov dword [esi + 8], 1
dec word [esp + 0x9c]
cmp word [esp + 0x98], 0
jge 0x401d25
mov eax, dword [esp + 0x3c]
add esi, 0x14
inc eax
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x3c], eax
jl 0x401ac1
jmp 0x401d29
mov byte [esp + 0xb8], 2
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x401cd4
mov ecx, dword [eax - 4]
lea ebx, [eax - 4]
push 0x401190
push ecx
push 0x14
push eax
call fcn.0041426e
push ebx
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 1
test edi, edi
je 0x401ce9
push edi
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401d02
push eax
call fcn.004148f0
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401d1e
push eax
call fcn.004148f0
add esp, 4
mov eax, esi
jmp 0x4020ce
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x5c]
xor eax, eax
xor edx, edx
push eax
mov word [esp + 0x9e], dx
mov edx, dword [ebx + 8]
push ecx
push edx
mov word [esp + 0xaa], ax
call fcn.00414d74
add esp, 0xc
cmp dword [esp + 0x50], 0
mov dword [esp + 0x34], 0
jle 0x401e62
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
lea eax, [eax + eax*4]
lea edi, [ecx + eax*4 - 0x10]
mov dword [esp + 0x28], edi
cmp dword [edi + 8], 0
jne 0x401e44
mov edx, dword [ebx + 8]
push edx
call fcn.00414c7c
mov ecx, eax
sub ecx, dword [ebp + 0x14]
add esp, 4
add cx, word [ebx + 0x44]
cmp word [esp + 0x9e], 0
mov word [esp + 0x9a], cx
jne 0x401daf
mov word [esp + 0x9e], cx
cmp dword [edi], 0xffffffff
jne 0x401e1b
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x10], edx
mov dword [edi], eax
mov eax, dword [esp + 0x48]
lea esi, [esp + 0x2c]
call fcn.004010d0
mov edi, dword [edi]
add edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x44]
push edi
mov ebx, edi
mov edi, dword [esp + 0x18]
call fcn.004043a0
mov eax, esi
mov edx, dword [eax + 0x10]
neg edx
sbb edx, edx
and edx, 2
mov ecx, edi
add edx, dword [ecx + 0x1c]
mov ecx, dword [ecx]
push edx
mov edx, dword [esp + 0x2c]
push ecx
mov ecx, dword [edx]
add ecx, dword [esp + 0x34]
add ecx, dword [eax + 0x44]
push ecx
call fcn.00416050
mov edi, dword [esp + 0x34]
add esp, 0xc
mov ebx, esi
mov edx, dword [ebx + 8]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
add eax, dword [esp + 0x2c]
push edx
push 1
push ecx
push eax
call fcn.00414a5d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
mov esi, eax
jne 0x401f1e
mov eax, dword [esp + 0x34]
inc eax
sub edi, 0x14
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x34], eax
mov dword [esp + 0x28], edi
jl 0x401d75
mov esi, dword [esp + 0x4c]
mov ax, word [esp + 0x98]
test ax, ax
jle 0x401fa4
mov edx, dword [ebx + 8]
push edx
cwde
push eax
lea ecx, [esp + 0x4b]
push 1
push ecx
mov byte [esp + 0x53], 0
call fcn.00414a5d
movsx edx, word [esp + 0xa8]
add esp, 0x10
cmp eax, edx
je 0x401fa4
mov byte [esp + 0xb8], 2
test esi, esi
je 0x401ec6
mov eax, dword [esi - 4]
push 0x401190
lea edi, [esi - 4]
push eax
push 0x14
push esi
call fcn.0041426e
push edi
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x401edf
push eax
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401ef8
push eax
call fcn.004148f0
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401f14
push eax
call fcn.004148f0
add esp, 4
mov eax, 5
jmp 0x4020ce
mov byte [esp + 0xb8], 2
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x401f4b
mov ecx, dword [eax - 4]
lea edi, [eax - 4]
push 0x401190
push ecx
push 0x14
push eax
call fcn.0041426e
push edi
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x401f64
push eax
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x401f7d
push eax
call fcn.004148f0
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401d1e
push eax
call fcn.004148f0
add esp, 4
mov eax, esi
jmp 0x4020ce
mov eax, dword [ebp + 0x14]
test eax, eax
jl 0x401fba
mov ecx, dword [ebx + 8]
push 0
push eax
push ecx
call fcn.00414d74
add esp, 0xc
mov edx, dword [ebx + 8]
push edx
push 1
lea eax, [esp + 0x90]
push 0x20
push eax
call fcn.00414a5d
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 7
mov ebx, eax
mov byte [esp + 0xb8], 2
je 0x40205d
test esi, esi
je 0x402007
mov ecx, dword [esi - 4]
push 0x401190
lea edi, [esi - 4]
push ecx
push 0x14
push esi
call fcn.0041426e
push edi
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x402020
push eax
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x402039
push eax
call fcn.004148f0
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4019ce
push eax
call fcn.004148f0
add esp, 4
mov eax, ebx
jmp 0x4020ce
test esi, esi
je 0x40207e
mov edx, dword [esi - 4]
push 0x401190
lea edi, [esi - 4]
push edx
push 0x14
push esi
call fcn.0041426e
push edi
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x402097
push eax
call fcn.004148f0
add esp, 4
mov byte [esp + 0xb8], 0
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4020b0
push eax
call fcn.004148f0
add esp, 4
mov dword [esp + 0xb8], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4020cc
push eax
call fcn.004148f0
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.0041358c
mov esp, ebp
pop ebp
ret 0x10