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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x617f98
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x6a5418]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x94], esi
push 0x65e698
push str.test.txt
call fcn.005d977b
mov edx, dword [esi + 4]
add esp, 8
mov dword [ebp - 0x98], eax
mov edi, dword [edx]
cmp edi, edx
je 0x4a50b5
nop word [eax + eax]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
lea edx, [edi + 0x24]
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 0x10
jb 0x4a481b
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4820
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
cmp dword [edi + 0x68], 0x10
lea ecx, [edi + 0x54]
jb 0x4a486c
mov ecx, dword [edi + 0x54]
push dword [edi + 0x64]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov ecx, dword [edi + 0x88]
mov eax, 0x2aaaaaab
mov esi, dword [edi + 0x84]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4a48be
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4a48b2
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x70]
push eax
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov ecx, dword [edi + 0x88]
mov eax, 0x2aaaaaab
mov esi, dword [edi + 0x84]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x4a4909
cmp dword [esi + 0x2c], 0x10
lea ecx, [esi + 0x18]
jb 0x4a48fd
mov ecx, dword [esi + 0x18]
push dword [esi + 0x28]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov ecx, dword [edi + 0x88]
mov eax, 0x2aaaaaab
mov esi, dword [edi + 0x84]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x4a4954
cmp dword [esi + 0x44], 0x10
lea ecx, [esi + 0x30]
jb 0x4a4948
mov ecx, dword [esi + 0x30]
push dword [esi + 0x40]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov ecx, dword [edi + 0x88]
mov eax, 0x2aaaaaab
mov esi, dword [edi + 0x84]
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
jbe 0x4a499f
cmp dword [esi + 0x5c], 0x10
lea ecx, [esi + 0x48]
jb 0x4a4993
mov ecx, dword [esi + 0x48]
push dword [esi + 0x58]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov edx, dword [ebp - 0x94]
mov ecx, 1
mov dword [ebp - 0x8c], ecx
mov eax, dword [edx + 0x2c]
mov esi, dword [eax]
cmp esi, eax
je 0x4a4a7b
nop dword [eax]
mov eax, dword [esi + 0x28]
test dword [edi + 0x144], eax
je 0x4a4a2d
test ecx, ecx
je 0x4a49eb
mov dword [ebp - 0x8c], 0
jmp 0x4a49fa
push 1
push 0x66cbc8
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
jb 0x4a4a05
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x90], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4a10
sub ecx, dword [ebp - 0x90]
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov edx, dword [ebp - 0x94]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4a4a54
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4a4a50
nop
cmp esi, dword [eax + 8]
jne 0x4a4a50
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4a4a40
mov esi, eax
jmp 0x4a4a6c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4a4a6c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4a4a60
mov ecx, dword [ebp - 0x8c]
cmp esi, dword [edx + 0x2c]
jne 0x4a49d0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov edx, dword [ebp - 0x94]
mov ecx, 1
mov dword [ebp - 0x8c], ecx
mov eax, dword [edx + 0x34]
mov esi, dword [eax]
cmp esi, eax
je 0x4a4b5b
nop dword [eax + eax]
mov eax, dword [esi + 0x28]
test dword [edi + 0x148], eax
je 0x4a4b0d
test ecx, ecx
je 0x4a4acb
mov dword [ebp - 0x8c], 0
jmp 0x4a4ada
push 1
push 0x66cbc8
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
jb 0x4a4ae5
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x90], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4af0
sub ecx, dword [ebp - 0x90]
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov edx, dword [ebp - 0x94]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4a4b34
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4a4b30
nop
cmp esi, dword [eax + 8]
jne 0x4a4b30
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4a4b20
mov esi, eax
jmp 0x4a4b4c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x4a4b4c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4a4b40
mov ecx, dword [ebp - 0x8c]
cmp esi, dword [edx + 0x34]
jne 0x4a4ab0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
cmp dword [edi + 0x50], 0x10
lea eax, [edi + 0x3c]
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], esi
jb 0x4a4ba2
mov eax, dword [eax]
mov dword [ebp - 0x90], eax
cmp esi, 0x10
jae 0x4a4bc1
movups xmm0, xmmword [eax]
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x78], esi
mov esi, 0xf
movups xmmword [ebp - 0x88], xmm0
jmp 0x4a4c22
or esi, 0xf
mov eax, closesocket
cmp esi, 0x7fffffff
cmova esi, eax
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x4a4be9
push eax
call fcn.0043a520
add esp, 4
mov ecx, eax
jmp 0x4a4bfc
test eax, eax
je 0x4a4bfa
push eax
call fcn.0059852b
add esp, 4
mov ecx, eax
jmp 0x4a4bfc
xor ecx, ecx
mov eax, dword [ebp - 0x8c]
inc eax
mov dword [ebp - 0x88], ecx
push eax
push dword [ebp - 0x90]
push ecx
call fcn.005cf880
mov eax, dword [ebp - 0x8c]
add esp, 0xc
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
push dword [ebp - 0x98]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
cmp esi, 0x10
mov edx, eax
push 1
cmovae ecx, dword [ebp - 0x88]
push ecx
push dword [edi + 0x4c]
call fcn.004ac250
mov edx, eax
add esp, 0x10
test edx, edx
jle 0x4a4cf6
mov eax, dword [ebp - 0x8c]
mov ecx, eax
sub ecx, edx
mov dword [ebp - 0x2c], 0
inc edx
mov dword [ebp - 0x1c], 0
add ecx, 0xfffffffb
mov dword [ebp - 0x18], 0xf
cmp eax, edx
jb 0x4a50de
sub eax, edx
cmp eax, ecx
cmovb ecx, eax
cmp esi, 0x10
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push ecx
add eax, edx
lea ecx, [ebp - 0x2c]
push eax
call fcn.0043a5c0
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x4a4cde
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a4cd4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a50d9
push edx
push ecx
call fcn.0059851d
add esp, 8
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0x78], xmm0
mov esi, dword [ebp - 0x74]
push dword [ebp - 0x78]
cmp esi, 0x10
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
movzx eax, word [edi + 0x150]
push eax
push 0x665bec
lea eax, [ebp - 0x58]
push 0x21
push eax
call fcn.0044b3f0
lea ecx, [ebp - 0x58]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4d42
sub ecx, edx
lea eax, [ebp - 0x58]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
movzx eax, word [edi + 0x152]
cmp eax, 1
jbe 0x4a4da6
push eax
push 0x665bec
lea eax, [ebp - 0x34]
push 0x21
push eax
call fcn.0044b3f0
lea ecx, [ebp - 0x34]
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a4d90
sub ecx, edx
lea eax, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov ecx, dword [edi + 0x94]
mov eax, 0x38e38e39
mov esi, dword [edi + 0x90]
sub ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4a4e46
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4a4de0
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x70]
push eax
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov eax, dword [edi + 0x90]
cmp dword [eax + 0x2c], 0x10
lea ecx, [eax + 0x18]
jb 0x4a4e0d
mov ecx, dword [eax + 0x18]
push dword [eax + 0x28]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov eax, dword [edi + 0x90]
cmp dword [eax + 0x44], 0x10
lea ecx, [eax + 0x30]
jb 0x4a4e3a
mov ecx, dword [eax + 0x30]
push dword [eax + 0x40]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov ecx, dword [edi + 0x94]
mov eax, 0x38e38e39
mov esi, dword [edi + 0x90]
sub ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x4a4ef1
cmp dword [esi + 0x5c], 0x10
lea ecx, [esi + 0x48]
jb 0x4a4e85
mov ecx, dword [esi + 0x48]
push dword [esi + 0x58]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov eax, dword [edi + 0x90]
cmp dword [eax + 0x74], 0x10
lea ecx, [eax + 0x60]
jb 0x4a4eb2
mov ecx, dword [eax + 0x60]
push dword [eax + 0x70]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov eax, dword [edi + 0x90]
cmp dword [eax + 0x8c], 0x10
lea ecx, [eax + 0x78]
jb 0x4a4ee2
mov ecx, dword [eax + 0x78]
push dword [eax + 0x88]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov ecx, dword [edi + 0x94]
mov eax, 0x38e38e39
mov esi, dword [edi + 0x90]
sub ecx, esi
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jbe 0x4a4fbe
cmp dword [esi + 0xa4], 0x10
lea ecx, [esi + 0x90]
jb 0x4a4f3d
mov ecx, dword [esi + 0x90]
push dword [esi + 0xa0]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov eax, dword [edi + 0x90]
cmp dword [eax + 0xbc], 0x10
lea ecx, [eax + 0xa8]
jb 0x4a4f76
mov ecx, dword [eax + 0xa8]
push dword [eax + 0xb8]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
push 1
push 0x66d144
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
mov eax, dword [edi + 0x90]
cmp dword [eax + 0xd4], 0x10
lea ecx, [eax + 0xc0]
jb 0x4a4faf
mov ecx, dword [eax + 0xc0]
push dword [eax + 0xd0]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0043c0f0
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
push 0x66d148
push dword [ebp - 0x98]
call fcn.0044b3d0
mov byte [ebp - 4], 0
add esp, 0xc
mov edx, dword [ebp - 0x74]
cmp edx, 0x10
jb 0x4a5018
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a500e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a50d9
push edx
push ecx
call fcn.0059851d
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
cmp edx, 0x10
jb 0x4a5064
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a505a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a50d9
push edx
push ecx
call fcn.0059851d
add esp, 8
mov eax, dword [edi + 8]
cmp byte [eax + 0xd], 0
je 0x4a508a
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x4a5086
cmp edi, dword [eax + 8]
jne 0x4a5086
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4a5076
mov edi, eax
jmp 0x4a50a0
mov edi, eax
mov ecx, dword [edi]
cmp byte [ecx + 0xd], 0
jne 0x4a50a0
mov eax, dword [ecx]
mov edi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4a5094
mov esi, dword [ebp - 0x94]
cmp edi, dword [esi + 4]
jne 0x4a47f0
mov eax, dword [ebp - 0x98]
push eax
call fcn.005d9be9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005984ec
mov esp, ebp
pop ebp
ret
call fcn.005d9542
call fcn.0047e8a0
int3