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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x637aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x6d5600]
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 - 0x194], esi
push 0x65a544
push str.test.txt
call fcn.005e8ce7
mov ecx, dword [esi + 4]
add esp, 8
mov dword [ebp - 0x19c], eax
mov edi, dword [ecx]
cmp edi, ecx
je 0x497bc4
nop word [eax + eax]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
cmp dword [edi + 0x38], 0x10
lea edx, [edi + 0x24]
mov dword [ebp - 4], 0
jb 0x4972db
mov edx, dword [edx]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4972e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
cmp dword [edi + 0x68], 0x10
lea eax, [edi + 0x54]
mov ecx, dword [eax + 0x10]
jb 0x49732e
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
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 0x49737d
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x497373
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
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 0x4973c8
cmp dword [esi + 0x2c], 0x10
lea eax, [esi + 0x18]
mov ecx, dword [eax + 0x10]
jb 0x4973be
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
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 0x497413
cmp dword [esi + 0x44], 0x10
lea eax, [esi + 0x30]
mov ecx, dword [eax + 0x10]
jb 0x497409
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
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 0x49745e
cmp dword [esi + 0x5c], 0x10
lea eax, [esi + 0x48]
mov ecx, dword [eax + 0x10]
jb 0x497454
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
mov edx, dword [ebp - 0x194]
mov ecx, 1
mov dword [ebp - 0x18c], ecx
mov eax, dword [edx + 0x2c]
mov esi, dword [eax]
cmp esi, eax
je 0x49753b
nop dword [eax + eax]
mov eax, dword [esi + 0x28]
test dword [edi + 0x144], eax
je 0x4974ed
test ecx, ecx
je 0x4974ab
mov dword [ebp - 0x18c], 0
jmp 0x4974ba
push 1
push 0x65a030
lea ecx, [ebp - 0x70]
call fcn.00451d50
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
jb 0x4974c5
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x190], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4974d0
sub ecx, dword [ebp - 0x190]
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00451d50
mov edx, dword [ebp - 0x194]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x497514
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x497510
nop
cmp esi, dword [eax + 8]
jne 0x497510
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x497500
mov esi, eax
jmp 0x49752c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x49752c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x497520
mov ecx, dword [ebp - 0x18c]
cmp esi, dword [edx + 0x2c]
jne 0x497490
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
mov edx, dword [ebp - 0x194]
mov ecx, 1
mov dword [ebp - 0x18c], ecx
mov eax, dword [edx + 0x34]
mov esi, dword [eax]
cmp esi, eax
je 0x49761b
nop dword [eax + eax]
mov eax, dword [esi + 0x28]
test dword [edi + 0x148], eax
je 0x4975cd
test ecx, ecx
je 0x49758b
mov dword [ebp - 0x18c], 0
jmp 0x49759a
push 1
push 0x65a030
lea ecx, [ebp - 0x70]
call fcn.00451d50
cmp dword [esi + 0x24], 0x10
lea edx, [esi + 0x10]
jb 0x4975a5
mov edx, dword [edx]
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x190], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4975b0
sub ecx, dword [ebp - 0x190]
push ecx
push edx
lea ecx, [ebp - 0x70]
call fcn.00451d50
mov edx, dword [ebp - 0x194]
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x4975f4
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x4975f0
nop
cmp esi, dword [eax + 8]
jne 0x4975f0
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4975e0
mov esi, eax
jmp 0x49760c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x49760c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x497600
mov ecx, dword [ebp - 0x18c]
cmp esi, dword [edx + 0x34]
jne 0x497570
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
cmp dword [edi + 0x50], 0x10
lea eax, [edi + 0x3c]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x198], ecx
jb 0x497662
mov eax, dword [eax]
mov dword [ebp - 0x190], eax
cmp ecx, 0x10
jae 0x497681
movups xmm0, xmmword [eax]
mov eax, 0xf
mov dword [ebp - 0x18c], eax
movups xmmword [ebp - 0x88], xmm0
mov dword [ebp - 0x74], eax
jmp 0x4976f8
mov esi, ecx
mov eax, SysReAllocString
or esi, 0xf
cmp esi, 0x7fffffff
cmova esi, eax
mov dword [ebp - 0x18c], esi
lea eax, [esi + 1]
cmp eax, 0x1000
jb 0x4976b7
push eax
call fcn.0044f5f0
mov ecx, dword [ebp - 0x198]
add esp, 4
mov edx, eax
jmp 0x4976d0
test eax, eax
je 0x4976ce
push eax
call fcn.00599754
mov ecx, dword [ebp - 0x198]
add esp, 4
mov edx, eax
jmp 0x4976d0
xor edx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x88], edx
push eax
push dword [ebp - 0x190]
push edx
call fcn.005d5670
mov ecx, dword [ebp - 0x198]
add esp, 0xc
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x78], ecx
mov esi, dword [edi + 0x4c]
lea edx, [ebp - 0x88]
cmp eax, 0x10
mov byte [ebp - 4], 1
cmovae edx, dword [ebp - 0x88]
mov dword [ebp - 0x190], edx
test ecx, ecx
je 0x497778
push 0x100
lea eax, [ebp - 0x188]
push 0
push eax
call fcn.005d5420
mov ecx, dword [ebp - 0x198]
add esp, 0xc
mov edx, dword [ebp - 0x190]
mov byte [ebp - 0x159], 1
lea eax, [ecx - 1]
cmp eax, esi
cmovb esi, eax
movzx eax, byte [esi + edx]
add esi, edx
mov al, byte [ebp + eax - 0x188]
test al, al
jne 0x497774
nop
cmp esi, edx
je 0x497778
movzx eax, byte [esi - 1]
dec esi
mov al, byte [ebp + eax - 0x188]
test al, al
je 0x497760
sub esi, edx
jmp 0x49777b
or esi, 0xffffffff
test esi, esi
jle 0x497820
mov edx, ecx
mov dword [ebp - 0x2c], 0
sub edx, esi
mov dword [ebp - 0x1c], 0
inc esi
mov dword [ebp - 0x18], 0xf
add edx, 0xfffffffb
cmp ecx, esi
jb 0x497bed
sub ecx, esi
lea eax, [ebp - 0x88]
cmp ecx, edx
cmovb edx, ecx
cmp dword [ebp - 0x18c], 0x10
push edx
cmovae eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x2c]
add eax, esi
push eax
call fcn.00451ee0
mov ecx, dword [ebp - 0x74]
cmp ecx, 0x10
jb 0x497806
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4977fc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497be8
push ecx
push edx
call fcn.005994f5
add esp, 8
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [ebp - 0x88], xmm0
movq xmm0, qword [ebp - 0x1c]
movq qword [ebp - 0x78], xmm0
mov ecx, dword [ebp - 0x74]
jmp 0x497826
mov ecx, dword [ebp - 0x18c]
push dword [ebp - 0x78]
cmp ecx, 0x10
lea eax, [ebp - 0x88]
lea ecx, [ebp - 0x70]
cmovae eax, dword [ebp - 0x88]
push eax
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
movzx eax, word [edi + 0x150]
push eax
push 0x65a558
lea eax, [ebp - 0x58]
push 0x21
push eax
call fcn.00465090
lea ecx, [ebp - 0x58]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x497872
sub ecx, edx
lea eax, [ebp - 0x58]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
movzx eax, word [edi + 0x152]
cmp eax, 1
jbe 0x4978d6
push eax
push 0x65a558
lea eax, [ebp - 0x34]
push 0x21
push eax
call fcn.00465090
lea ecx, [ebp - 0x34]
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4978c0
sub ecx, edx
lea eax, [ebp - 0x34]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
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 0x497975
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x497911
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
mov eax, dword [edi + 0x90]
add eax, 0x18
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x49793e
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
mov eax, dword [edi + 0x90]
add eax, 0x30
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x49796b
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
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 0x497a1a
cmp dword [esi + 0x5c], 0x10
lea eax, [esi + 0x48]
mov ecx, dword [eax + 0x10]
jb 0x4979b6
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
mov eax, dword [edi + 0x90]
add eax, 0x60
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4979e3
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
mov eax, dword [edi + 0x90]
add eax, 0x78
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x497a10
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
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 0x497ac9
cmp dword [esi + 0xa4], 0x10
lea eax, [esi + 0x90]
mov ecx, dword [eax + 0x10]
jb 0x497a61
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
mov eax, dword [edi + 0x90]
add eax, 0xa8
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x497a90
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
push 1
push 0x65a554
lea ecx, [ebp - 0x70]
call fcn.00451d50
mov eax, dword [edi + 0x90]
add eax, 0xc0
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x497abf
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.00451d50
cmp dword [ebp - 0x5c], 0x10
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
push 0x65a55c
push dword [ebp - 0x19c]
call fcn.0049a2b0
mov ecx, dword [ebp - 0x74]
add esp, 0xc
mov byte [ebp - 4], 0
cmp ecx, 0x10
jb 0x497b23
mov edx, dword [ebp - 0x88]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x497b19
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497be8
push ecx
push edx
call fcn.005994f5
add esp, 8
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x497b73
mov edx, dword [ebp - 0x70]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x497b69
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x497be8
push ecx
push edx
call fcn.005994f5
add esp, 8
mov eax, dword [edi + 8]
cmp byte [eax + 0xd], 0
je 0x497b99
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x497b95
cmp edi, dword [eax + 8]
jne 0x497b95
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x497b85
mov edi, eax
jmp 0x497baf
mov edi, eax
mov ecx, dword [edi]
cmp byte [ecx + 0xd], 0
jne 0x497baf
mov eax, dword [ecx]
mov edi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x497ba3
mov esi, dword [ebp - 0x194]
cmp edi, dword [esi + 4]
jne 0x4972b0
mov eax, dword [ebp - 0x19c]
push eax
call fcn.005e7a13
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.005994b1
mov esp, ebp
pop ebp
ret
call fcn.005e01aa
call fcn.0047e330
int3