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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x60a63e
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x6ac9e8]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
push edi
mov eax, dword [0x6ac9e8]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov edi, ecx
push 0x62931c
push str.test.txt
mov dword [esp + 0x18], edi
call fcn.005c6f30
mov ebx, dword [edi + 4]
mov dword [esp + 0x28], eax
mov eax, dword [edi + 0x1c]
mov esi, dword [eax]
add esp, 8
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ebx
lea esp, [esp]
mov eax, dword [edi + 0x1c]
mov edi, dword [edi + 4]
mov dword [esp + 0x40], eax
test ebx, ebx
je 0x46fc02
cmp ebx, edi
je 0x46fc07
call fcn.005c5aaf
cmp esi, dword [esp + 0x40]
je 0x4705ad
test ebx, ebx
jne 0x46fc5a
call fcn.005c5aaf
cmp esi, dword [ebx + 0x18]
jne 0x46fc24
call fcn.005c5aaf
xor ebx, ebx
push ebx
push 0x65b544
lea ecx, [esp + 0x68]
mov dword [esp + 0x80], 0xf
mov dword [esp + 0x7c], ebx
mov byte [esp + 0x6c], bl
call fcn.00416460
cmp dword [esi + 0x38], 0x10
mov dword [esp + 0xf0], ebx
jb 0x46fc5e
mov ecx, dword [esi + 0x24]
jmp 0x46fc61
mov ebx, dword [ebx]
jmp 0x46fc1a
lea ecx, [esi + 0x24]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46fc66
sub eax, edi
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.004161e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x58]
push ecx
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xa0]
sub ecx, dword [esi + 0x9c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x46fd24
mov ecx, dword [esi + 0xa0]
sub ecx, dword [esi + 0x9c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x46fd11
call fcn.005c5aaf
mov eax, dword [esi + 0x9c]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xa0]
sub ecx, dword [esi + 0x9c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x46fd97
mov ecx, dword [esi + 0xa0]
sub ecx, dword [esi + 0x9c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 1
ja 0x46fd81
call fcn.005c5aaf
mov eax, dword [esi + 0x9c]
push 0xffffffffffffffff
add eax, 0x1c
push ebx
push eax
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xa0]
sub ecx, dword [esi + 0x9c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x46fe0a
mov ecx, dword [esi + 0xa0]
sub ecx, dword [esi + 0x9c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
ja 0x46fdf4
call fcn.005c5aaf
mov eax, dword [esi + 0x9c]
push 0xffffffffffffffff
add eax, 0x38
push ebx
push eax
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xa0]
sub ecx, dword [esi + 0x9c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
jbe 0x46fe7d
mov ecx, dword [esi + 0xa0]
sub ecx, dword [esi + 0x9c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 3
ja 0x46fe67
call fcn.005c5aaf
mov eax, dword [esi + 0x9c]
push 0xffffffffffffffff
add eax, 0x54
push ebx
push eax
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x78]
mov eax, dword [eax]
mov edi, dword [ecx + 0x60]
mov ebx, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
jmp 0x46feb0
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 0x78]
mov eax, dword [eax + 0x60]
mov dword [esp + 0x30], edx
test edi, edi
je 0x46fec6
cmp edi, eax
je 0x46fecb
call fcn.005c5aaf
cmp ebx, dword [esp + 0x30]
je 0x46ff6e
test edi, edi
jne 0x46ff06
call fcn.005c5aaf
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x46feea
call fcn.005c5aaf
mov eax, dword [ebx + 0x28]
test dword [esi + 0x198], eax
je 0x46ff58
cmp dword [esp + 0x14], 0
je 0x46ff0a
mov dword [esp + 0x14], 0
jmp 0x46ff1a
mov eax, dword [edi]
jmp 0x46fee0
push 1
push 0x629308
lea ecx, [esp + 0x68]
call fcn.004161e0
test edi, edi
jne 0x46ff38
call fcn.005c5aaf
cmp ebx, dword [edi + 0x18]
jne 0x46ff2d
call fcn.005c5aaf
cmp dword [ebx + 0x24], 0x10
jb 0x46ff3c
mov edx, dword [ebx + 0x10]
jmp 0x46ff3f
mov edi, dword [edi]
jmp 0x46ff23
lea edx, [ebx + 0x10]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46ff44
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x68]
call fcn.004161e0
lea ecx, [esp + 0x18]
call fcn.0046d7d0
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jmp 0x46feb0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x98]
mov eax, dword [eax]
mov edi, dword [ecx + 0x80]
mov ebx, eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
jmp 0x46ffb0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x98]
mov eax, dword [eax + 0x80]
mov dword [esp + 0x38], ecx
test edi, edi
je 0x46ffcc
cmp edi, eax
je 0x46ffd1
call fcn.005c5aaf
cmp ebx, dword [esp + 0x38]
je 0x47007a
test edi, edi
jne 0x47000c
call fcn.005c5aaf
xor eax, eax
cmp ebx, dword [eax + 0x18]
jne 0x46fff0
call fcn.005c5aaf
mov edx, dword [ebx + 0x28]
test dword [esi + 0x19c], edx
je 0x470064
cmp dword [esp + 0x14], 0
je 0x470010
mov dword [esp + 0x14], 0
jmp 0x470020
mov eax, dword [edi]
jmp 0x46ffe6
push 1
push 0x629308
lea ecx, [esp + 0x68]
call fcn.004161e0
test edi, edi
jne 0x47003e
call fcn.005c5aaf
cmp ebx, dword [edi + 0x18]
jne 0x470033
call fcn.005c5aaf
cmp dword [ebx + 0x24], 0x10
jb 0x470042
mov edx, dword [ebx + 0x10]
jmp 0x470045
mov edi, dword [edi]
jmp 0x470029
lea edx, [ebx + 0x10]
mov eax, edx
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x470050
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x68]
call fcn.004161e0
lea ecx, [esp + 0x18]
call fcn.0046d7d0
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
jmp 0x46ffb0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
push 0xffffffffffffffff
xor edi, edi
lea eax, [esi + 0x3c]
push edi
push eax
lea ecx, [esp + 0x88]
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], edi
mov byte [esp + 0x8c], 0
call fcn.00416950
mov eax, dword [esi + 0x50]
push 1
push eax
push 0x65b548
lea ecx, [esp + 0x88]
mov byte [esp + 0xfc], 1
call fcn.0046d570
cmp eax, edi
jle 0x470136
mov ecx, dword [esp + 0x90]
sub ecx, eax
sub ecx, 5
push ecx
inc eax
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x88]
call fcn.0046f2c0
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x88]
mov byte [esp + 0xfc], 2
call fcn.00416950
mov ebx, 0x10
mov byte [esp + 0xf0], 1
cmp dword [esp + 0x5c], ebx
jb 0x47013b
mov eax, dword [esp + 0x48]
push eax
call fcn.005c5896
add esp, 4
jmp 0x47013b
mov ebx, 0x10
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
movzx edx, word [esi + 0x1a4]
push edx
push 0x629304
lea eax, [esp + 0xa0]
push 0x21
push eax
call fcn.005c67e2
lea eax, [esp + 0xa8]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x470188
sub eax, ecx
push eax
lea ecx, [esp + 0x9c]
push ecx
lea ecx, [esp + 0x68]
call fcn.004161e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
movzx eax, word [esi + 0x1a6]
cmp ax, 1
jbe 0x470200
movzx edx, ax
push edx
push 0x629304
lea eax, [esp + 0xc4]
push 0x21
push eax
call fcn.005c67e2
lea eax, [esp + 0xcc]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4701e5
sub eax, edx
push eax
lea ecx, [esp + 0xc0]
push ecx
lea ecx, [esp + 0x68]
call fcn.004161e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb4]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4702fe
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb4]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x470257
call fcn.005c5aaf
mov eax, dword [esi + 0xb4]
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb4]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x47029e
call fcn.005c5aaf
mov eax, dword [esi + 0xb4]
push 0xffffffffffffffff
add eax, 0x1c
push edi
push eax
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb4]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4702e8
call fcn.005c5aaf
mov eax, dword [esi + 0xb4]
push 0xffffffffffffffff
add eax, 0x38
push edi
push eax
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb4]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x47040d
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb4]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 1
ja 0x47035b
call fcn.005c5aaf
mov eax, dword [esi + 0xb4]
push 0xffffffffffffffff
add eax, 0x54
push edi
push eax
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb4]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
ja 0x4703a8
call fcn.005c5aaf
mov eax, dword [esi + 0xb4]
push 0xffffffffffffffff
add eax, 0x70
push edi
push eax
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb4]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 1
ja 0x4703f5
call fcn.005c5aaf
mov eax, dword [esi + 0xb4]
push 0xffffffffffffffff
add eax, 0x8c
push edi
push eax
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb4]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x470521
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb4]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
ja 0x47046a
call fcn.005c5aaf
mov eax, dword [esi + 0xb4]
push 0xffffffffffffffff
add eax, 0xa8
push edi
push eax
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb4]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
ja 0x4704b9
call fcn.005c5aaf
mov eax, dword [esi + 0xb4]
push 0xffffffffffffffff
add eax, 0xc4
push edi
push eax
lea ecx, [esp + 0x6c]
call fcn.004160e0
push 1
push 0x62930c
lea ecx, [esp + 0x68]
call fcn.004161e0
mov ecx, dword [esi + 0xb8]
sub ecx, dword [esi + 0xb4]
mov eax, 0x30c30c31
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ecx, 2
ja 0x470508
call fcn.005c5aaf
mov esi, dword [esi + 0xb4]
push 0xffffffffffffffff
add esi, 0xe0
push edi
push esi
lea ecx, [esp + 0x6c]
call fcn.004160e0
mov eax, dword [esp + 0x64]
cmp dword [esp + 0x78], ebx
jae 0x47052f
lea eax, [esp + 0x64]
mov edx, dword [esp + 0x20]
push eax
push 0x629300
push edx
call fcn.005c6d50
add esp, 0xc
cmp dword [esp + 0x94], ebx
jb 0x47055b
mov eax, dword [esp + 0x80]
push eax
call fcn.005c5896
add esp, 4
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], edi
mov byte [esp + 0x80], 0
mov dword [esp + 0xf0], 0xffffffff
cmp dword [esp + 0x78], ebx
jb 0x470593
mov ecx, dword [esp + 0x64]
push ecx
call fcn.005c5896
add esp, 4
lea ecx, [esp + 0x24]
call fcn.0046d750
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
jmp 0x46fbf0
mov edx, dword [esp + 0x20]
push edx
call fcn.005c6cd4
add esp, 4
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.005c5ea5
mov esp, ebp
pop ebp
ret