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

Disassembly:
push 0xffffffffffffffff
push 0x4863f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push ebp
push esi
push edi
mov edi, ecx
push ecx
mov dword [esp + 0x48], edi
lea eax, [edi + 0x450]
mov ecx, esp
mov dword [esp + 0x8c], esp
push eax
call fcn.004766d9
lea ecx, [esp + 0x88]
push ecx
call fcn.00401080
add esp, 8
mov ebx, dword [esp + 0x1bc]
xor esi, esi
mov dword [esp + 0x1b4], esi
lea eax, [ebx*8]
sub eax, ebx
lea edx, [eax + eax*2]
mov eax, dword [edi + 0x118]
lea ebp, [ebx + edx*2]
shl ebp, 2
mov dword [esp + 0x14], ebp
mov dword [eax + ebp], esi
mov ecx, dword [0x49e2a4]
mov dword [esp + 0x80], ecx
push ebx
lea edx, [esp + 0x84]
push str.save_d.dat
push edx
mov byte [esp + 0x1c0], 1
call fcn.004754c2
add esp, 0xc
lea ecx, [esp + 0x48]
push 0x400
call fcn.0047ddd6
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], esi
push ecx
lea eax, [esp + 0x84]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x1bc], 2
call fcn.004766d9
lea ecx, [esp + 0x80]
push ecx
call fcn.004013c0
add esp, 8
mov esi, dword [eax]
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b4], 3
call fcn.00476ee5
push 0
push 0
push esi
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1c0], 4
call fcn.00476ff7
test eax, eax
je 0x41f74e
lea edx, [esp + 0x94]
lea ecx, [esp + 0x30]
push edx
call fcn.00477642
test eax, eax
je 0x41f724
mov eax, dword [esp + 0x98]
mov dword [esp + 0x78], eax
lea ecx, [esp + 0x40]
push 4
push ecx
lea ecx, [esp + 0x38]
call fcn.00477114
lea edx, [esp + 0x10]
push 4
push edx
lea ecx, [esp + 0x38]
call fcn.00477114
cmp dword [esp + 0x40], 0x32564153
je 0x41f766
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b4], 3
call fcn.00476f3a
xor esi, esi
jmp 0x41f859
lea ecx, [esp + 0x30]
call fcn.004772f1
mov ebp, eax
sub ebp, 8
js 0x41f787
push ebp
call fcn.0045750b
add esp, 4
mov dword [esp + 0x70], eax
test eax, eax
jne 0x41f79f
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b4], 3
call fcn.00476f3a
xor esi, esi
jmp 0x41f855
push ebp
push eax
lea ecx, [esp + 0x38]
call fcn.00477114
mov eax, dword [esp + 0x70]
push 0
push ebp
push eax
lea ecx, [esp + 0x54]
call fcn.0047de5e
xor eax, eax
test ebp, ebp
jle 0x41f835
mov edx, dword [esp + 0x10]
mov ecx, ebp
mov dword [esp + 0x28], ecx
cmp ecx, 4
mov dword [esp + 0x24], 0
jl 0x41f7dd
mov ecx, 4
mov esi, dword [esp + 0x70]
mov ebx, ecx
add esi, eax
lea edi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
add eax, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x24]
sub edx, ecx
mov ecx, dword [esp + 0x28]
sub ecx, 4
cmp eax, ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x28], ecx
jl 0x41f7cb
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x1bc]
xor esi, esi
cmp edx, esi
je 0x41f83b
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b4], 3
call fcn.00476f3a
jmp 0x41f855
mov edx, dword [esp + 0x10]
jmp 0x41f81c
lea ecx, [esp + 0x30]
mov dword [esp + 0x74], esi
mov byte [esp + 0x1b4], 3
call fcn.00476f3a
mov esi, 1
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x7c]
mov byte [esp + 0x1b4], 2
call fcn.00476964
test esi, esi
je 0x41fd8c
mov ecx, dword [edi + 0x118]
mov dword [ecx + ebp], 1
mov edx, dword [edi + 0x118]
mov ecx, dword [esp + 0x78]
lea eax, [edx + ebp + 0x1c]
mov dword [eax], ecx
mov edx, dword [edi + 0x118]
lea ecx, [edx + ebp + 0x20]
call fcn.004768ef
lea esi, [ebp + 0x28]
mov ebp, 0x20
mov ecx, dword [edi + 0x118]
add ecx, esi
call fcn.004768ef
add esi, 4
dec ebp
jne 0x41f8a6
mov eax, dword [edi + 0x118]
mov ebp, dword [esp + 0x14]
lea ecx, [eax + ebp + 0x24]
call fcn.004768ef
mov ecx, dword [edi + 0x118]
mov dword [ecx + ebp + 0x18], 1
mov ecx, dword [edi + 0x11c]
cmp ecx, 0xffffffff
je 0x41f91e
lea eax, [ecx*8]
sub eax, ecx
lea edx, [eax + eax*2]
lea eax, [ecx + edx*2]
mov ecx, dword [edi + 0x118]
push ecx
mov edx, dword [ecx + eax*4 + 0x1c]
lea eax, [ecx + eax*4 + 0x1c]
mov ecx, esp
mov dword [esp + 0x30], esp
mov dword [ecx], edx
mov eax, dword [edi + 0x118]
lea ecx, [eax + ebp + 0x1c]
call fcn.0041fe20
test eax, eax
je 0x41f924
mov dword [edi + 0x11c], ebx
lea eax, [ebp + 0x28]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x8c]
push 4
push ecx
lea ecx, [esp + 0x50]
call dword [edx + 0x34]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x7c]
push 4
push eax
lea ecx, [esp + 0x50]
call dword [edx + 0x34]
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x48]
call dword [eax + 0xc]
mov ecx, dword [esp + 0x7c]
mov ebx, dword [esp + 0x8c]
not ecx
not ebx
add eax, ecx
cmp ebx, 0x4c544954
mov dword [esp + 0x74], eax
mov dword [esp + 0x10], ebx
ja 0x41fbbd
je 0x41fb71
cmp ebx, 0x444e4957
je 0x41fa97
cmp ebx, 0x45544144
jne 0x41fd66
mov edx, dword [edi + 0x118]
xor esi, esi
lea ebp, [edx + ebp + 4]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x1e]
push 1
push eax
lea ecx, [esp + 0x50]
call dword [edx + 0x34]
mov al, byte [esp + 0x1e]
inc esi
not al
mov byte [esi + ebp - 1], al
cmp esi, 4
jb 0x41f9ac
mov ecx, dword [edi + 0x118]
mov ebx, dword [esp + 0x14]
xor esi, esi
lea ebp, [ebx + ecx + 8]
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x21]
push 1
push edx
lea ecx, [esp + 0x50]
call dword [eax + 0x34]
mov cl, byte [esp + 0x21]
inc esi
not cl
mov byte [esi + ebp - 1], cl
cmp esi, 4
jb 0x41f9de
mov edx, dword [edi + 0x118]
xor esi, esi
lea ebp, [ebx + edx + 0xc]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x23]
push 1
push eax
lea ecx, [esp + 0x50]
call dword [edx + 0x34]
mov al, byte [esp + 0x23]
inc esi
not al
mov byte [esi + ebp - 1], al
cmp esi, 4
jb 0x41fa0c
mov ecx, dword [edi + 0x118]
xor esi, esi
lea ebp, [ebx + ecx + 0x10]
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x22]
push 1
push edx
lea ecx, [esp + 0x50]
call dword [eax + 0x34]
mov cl, byte [esp + 0x22]
inc esi
not cl
mov byte [esi + ebp - 1], cl
cmp esi, 4
jb 0x41fa3a
mov edx, dword [edi + 0x118]
xor esi, esi
lea ebp, [ebx + edx + 0x14]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x1c]
push 1
push eax
lea ecx, [esp + 0x50]
call dword [edx + 0x34]
mov al, byte [esp + 0x1c]
inc esi
not al
mov byte [esi + ebp - 1], al
cmp esi, 4
jb 0x41fa68
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
jmp 0x41fd66
mov ecx, dword [0x49e2a4]
mov dword [esp + 0x10], ecx
mov byte [esp + 0x1b4], 7
xor esi, esi
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x20]
push 1
push edx
lea ecx, [esp + 0x50]
call dword [eax + 0x34]
mov cl, byte [esp + 0x20]
inc esi
not cl
mov byte [esp + esi + 0x2b], cl
cmp esi, 4
jb 0x41faab
xor esi, esi
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x19]
push 1
push edx
lea ecx, [esp + 0x50]
call dword [eax + 0x34]
mov cl, byte [esp + 0x19]
inc esi
not cl
mov byte [esp + esi + 0x8f], cl
cmp esi, 4
jb 0x41facf
mov eax, dword [esp + 0x48]
lea edx, [esp + 0x1a]
push 1
push edx
lea ecx, [esp + 0x50]
call dword [eax + 0x34]
mov cl, byte [esp + 0x1a]
not cl
mov byte [esp + 0x88], cl
mov esi, dword [esp + 0x88]
and esi, 0xff
lea ecx, [esp + 0x10]
push esi
push esi
call fcn.00476d48
push eax
lea ecx, [esp + 0x50]
call fcn.00407860
push esi
lea ecx, [esp + 0x14]
call fcn.00476d97
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x41fb5b
mov eax, dword [edi + 0x118]
lea edx, [esp + 0x10]
push edx
lea ecx, [eax + ebp + 0x24]
call fcn.00476a51
lea ecx, [esp + 0x10]
mov byte [esp + 0x1b4], 2
call fcn.00476964
jmp 0x41fd66
mov ecx, dword [edi + 0x118]
lea edx, [esp + 0x28]
push 1
push edx
lea esi, [ecx + ebp + 0x20]
lea ecx, [esp + 0x50]
call fcn.00407860
mov eax, dword [esp + 0x28]
mov ecx, esi
and eax, 0xff
push eax
push eax
call fcn.00476d48
push eax
lea ecx, [esp + 0x50]
call fcn.00407860
mov eax, dword [esp + 0x28]
mov ecx, esi
and eax, 0xff
push eax
call fcn.00476d97
jmp 0x41fd66
cmp ebx, 0x52545043
je 0x41fd34
cmp ebx, 0x54584554
jne 0x41fd66
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x48]
call dword [edx + 0xc]
mov edx, dword [esp + 0x74]
xor ecx, ecx
cmp eax, edx
sete cl
mov eax, ecx
test eax, eax
jne 0x41fd2d
mov eax, dword [0x49e2a4]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea edx, [esp + 0x44]
push 1
push edx
lea ecx, [esp + 0x50]
mov byte [esp + 0x1bc], 5
call fcn.00407860
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x30]
and eax, 0xff
push eax
push eax
call fcn.00476d48
push eax
lea ecx, [esp + 0x50]
call fcn.00407860
mov eax, dword [esp + 0x44]
lea ecx, [esp + 0x30]
and eax, 0xff
push eax
call fcn.00476d97
lea ecx, [esp + 0x40]
push 1
push ecx
lea ecx, [esp + 0x50]
call fcn.00407860
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x34]
and eax, 0xff
push eax
push eax
call fcn.00476d48
push eax
lea ecx, [esp + 0x50]
call fcn.00407860
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0x34]
and edx, 0xff
push edx
call fcn.00476d97
xor esi, esi
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x1b]
push 1
push eax
lea ecx, [esp + 0x50]
call dword [edx + 0x34]
mov al, byte [esp + 0x1b]
inc esi
not al
mov byte [esp + esi + 0x37], al
cmp esi, 4
jb 0x41fc8f
xor esi, esi
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x1d]
push 1
push ecx
lea ecx, [esp + 0x50]
call dword [edx + 0x34]
mov al, byte [esp + 0x1d]
inc esi
not al
mov byte [esp + esi + 0x3b], al
cmp esi, 4
jb 0x41fcb3
mov esi, dword [esp + 0x24]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [edi + 0x118]
add ecx, esi
call fcn.00476d30
lea ecx, [esp + 0x34]
mov byte [esp + 0x1b4], 6
call fcn.00476964
lea ecx, [esp + 0x30]
mov byte [esp + 0x1b4], 2
call fcn.00476964
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x48]
call dword [edx + 0xc]
mov edx, dword [esp + 0x74]
xor ecx, ecx
cmp eax, edx
sete cl
mov eax, ecx
test eax, eax
je 0x41fbf5
add dword [esp + 0x24], 4
jmp 0x41fd66
mov edx, dword [edi + 0x118]
xor esi, esi
lea ebp, [edx + ebp + 0x18]
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x1f]
push 1
push eax
lea ecx, [esp + 0x50]
call dword [edx + 0x34]
mov al, byte [esp + 0x1f]
inc esi
not al
mov byte [esi + ebp - 1], al
cmp esi, 4
jb 0x41fd40
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x48]
push 0
push ecx
lea ecx, [esp + 0x50]
call dword [edx + 0x28]
cmp ebx, 0x20444e45
mov dword [esp + 0x74], 0
jne 0x41f92b
push ecx
lea eax, [esp + 0x88]
mov ecx, esp
mov dword [esp + 0x94], esp
push eax
call fcn.004766d9
lea ecx, [esp + 0x30]
push ecx
call fcn.00401080
add esp, 8
lea ecx, [esp + 0x2c]
call fcn.00476964
mov edx, dword [esp + 0x70]
mov byte [esp + 0x1b4], 1
push edx
call fcn.00457422
add esp, 4
lea ecx, [esp + 0x48]
call fcn.0047de9b
lea ecx, [esp + 0x80]
mov byte [esp + 0x1b4], 0
call fcn.00476964
lea ecx, [esp + 0x84]
mov dword [esp + 0x1b4], 0xffffffff
call fcn.00476964
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1a8
ret 4