Function at 0x4df2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52b114
mov eax, dword fs:[0]
push eax
sub esp, 0x46c
mov eax, dword [0x5644a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x424], ecx
push 8
call dword [sym.imp.Dump.dll_if_dump]
add esp, 4
test eax, eax
je 0x4df366
push str._entity_task_check_json_filefile_length_1_
lea ecx, [ebp - 0xbc]
call fcn.0040e500
mov dword [ebp - 0x428], eax
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x42c], eax
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x42c]
call fcn.004367b0
push eax
push 8
call dword [sym.imp.Dump.dll_dump]
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xbc]
call fcn.0040c9f0
xor edx, edx
jne 0x4df301
cmp dword [ebp + 0xc], 0
je 0x4df385
cmp dword [ebp + 0x10], 0
jbe 0x4df385
mov ecx, dword [ebp + 8]
call fcn.00402cb0
movzx eax, al
test eax, eax
je 0x4df38d
or eax, 0xffffffff
jmp 0x4dfb0f
mov ecx, dword [ebp - 0x424]
add ecx, 0x9c
sub esp, 0x1c
mov edx, esp
mov dword [ebp - 0x3e0], esp
push ecx
mov ecx, edx
call fcn.00402b30
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x424]
call fcn.004e48c0
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x3d4], eax
mov dword [ebp - 0x3d8], 0
mov ecx, dword [ebp - 0x424]
cmp dword [ecx + 0xe8], 0
je 0x4df435
mov edx, dword [ebp - 0x424]
mov ecx, dword [edx + 0xe8]
call fcn.00429c20
fmul qword [0x549428]
fnstcw word [ebp - 0x436]
movzx eax, word [ebp - 0x436]
or eax, 0xc00
mov dword [ebp - 0x43c], eax
fldcw word [ebp - 0x43c]
fistp qword [ebp - 0x444]
fldcw word [ebp - 0x436]
mov eax, dword [ebp - 0x444]
mov dword [ebp - 0x3d8], eax
mov ecx, dword [ebp - 0x3d8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp - 0x424]
add eax, 0x9c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3e4], esp
push eax
push ecx
call fcn.0051f360
add esp, 8
mov dword [ebp - 0x448], eax
mov edx, dword [ebp - 0x3d4]
push edx
call fcn.0050ee40
add esp, 0x2c
push 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax - 0x28]
push edx
lea ecx, [ebp - 0x2f0]
call fcn.00424f70
mov dword [ebp - 4], 1
push 0x49546e
lea eax, [ebp - 0x3e8]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0042ada0
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x3ec]
push edx
lea ecx, [ebp - 0x2f0]
call fcn.0042a850
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x3f0]
push ecx
lea ecx, [ebp - 0x2f0]
call fcn.0042ada0
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x3f4]
push eax
call fcn.0045e060
add esp, 0x14
mov byte [ebp - 0x390], 0
xor ecx, ecx
mov dword [ebp - 0x38f], ecx
mov dword [ebp - 0x38b], ecx
mov dword [ebp - 0x387], ecx
mov dword [ebp - 0x383], ecx
mov word [ebp - 0x37f], cx
mov byte [ebp - 0x37d], cl
lea ecx, [ebp - 0x37c]
call fcn.004299e0
mov edx, dword [ebp + 0x10]
sub edx, 0x28
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x37c]
call fcn.004be090
lea ecx, [ebp - 0x37c]
call fcn.004be010
push 0x14
lea ecx, [ebp - 0x390]
push ecx
lea ecx, [ebp - 0x37c]
call fcn.004be0c0
push 0x14
lea edx, [ebp - 0x390]
push edx
lea ecx, [ebp - 0x3d0]
call fcn.00424f70
mov byte [ebp - 4], 2
push 0x14
lea ecx, [ebp - 0x3d0]
call fcn.00402b10
push eax
lea eax, [ebp - 0x318]
push eax
call fcn.0050dee0
add esp, 0xc
mov byte [ebp - 4], 3
mov dword [ebp - 0x3b4], 0
mov dword [ebp - 0x2f8], 0
mov ecx, dword [ebp - 0x424]
add ecx, 4
sub esp, 0x14
mov edx, esp
mov dword [ebp - 0x3f8], esp
push ecx
mov ecx, edx
call fcn.0050eb50
mov dword [ebp - 0x44c], eax
mov eax, dword [ebp - 0x44c]
mov dword [ebp - 0x450], eax
mov byte [ebp - 4], 4
call fcn.004e50d0
mov byte [ebp - 4], 3
mov ecx, eax
call fcn.004e4fd0
mov dword [ebp - 0x454], eax
mov ecx, dword [ebp - 0x454]
mov dword [ebp - 0x3b4], ecx
cmp dword [ebp - 0x3b4], 0
jne 0x4df646
mov dword [ebp - 0x3fc], 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.00402c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3d0]
call fcn.00402ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f0]
call fcn.00402ab0
mov eax, dword [ebp - 0x3fc]
jmp 0x4dfb0f
mov edx, dword [ebp - 0x3b4]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3b4]
mov edx, dword [eax + 0x1c]
call edx
mov dword [ebp - 0x2f8], eax
cmp dword [ebp - 0x2f8], 0
jne 0x4df6ad
mov dword [ebp - 0x400], 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.00402c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3d0]
call fcn.00402ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f0]
call fcn.00402ab0
mov eax, dword [ebp - 0x400]
jmp 0x4dfb0f
lea eax, [ebp - 0x318]
push eax
lea ecx, [ebp - 0xd8]
push ecx
call fcn.0051f360
add esp, 8
mov dword [ebp - 0x458], eax
mov edx, dword [ebp - 0x458]
mov dword [ebp - 0x45c], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0041b7b0
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x401], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xd8]
call fcn.00402ab0
movzx ecx, byte [ebp - 0x401]
test ecx, ecx
je 0x4df80e
push 8
call dword [sym.imp.Dump.dll_if_dump]
add esp, 4
test eax, eax
je 0x4df76b
push str.__entity_task_check_json_file_fail
lea ecx, [ebp - 0x184]
call fcn.0040e500
mov dword [ebp - 0x460], eax
mov edx, dword [ebp - 0x460]
mov dword [ebp - 0x464], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x464]
push eax
push 8
call dword [sym.imp.Dump.dll_dump]
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x184]
call fcn.0040c9f0
xor ecx, ecx
jne 0x4df715
push 0
push 1
mov edx, dword [ebp - 0x2f8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x2f8]
mov edx, dword [eax + 0x28]
call edx
mov eax, dword [ebp - 0x3d8]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 2
mov edx, dword [ebp - 0x424]
add edx, 0x9c
sub esp, 0x1c
mov eax, esp
mov dword [ebp - 0x408], esp
push edx
push eax
call fcn.0051f360
add esp, 8
mov dword [ebp - 0x468], eax
mov ecx, dword [ebp - 0x3d4]
push ecx
call fcn.0050ee40
add esp, 0x2c
mov dword [ebp - 0x40c], 0xffffffff
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.00402c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3d0]
call fcn.00402ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f0]
call fcn.00402ab0
mov eax, dword [ebp - 0x40c]
jmp 0x4dfb0f
push 8
call dword [sym.imp.Dump.dll_if_dump]
add esp, 4
test eax, eax
je 0x4df864
push str._entity_task_check_json_file_ok
lea ecx, [ebp - 0x22c]
call fcn.0040e500
mov dword [ebp - 0x46c], eax
mov edx, dword [ebp - 0x46c]
mov dword [ebp - 0x470], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x470]
push eax
push 8
call dword [sym.imp.Dump.dll_dump]
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x22c]
call fcn.0040c9f0
xor ecx, ecx
jne 0x4df80e
push 0x540904
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x3ac]
push eax
call fcn.004523b0
add esp, 0xc
mov byte [ebp - 4], 8
push 0x54099c
lea ecx, [ebp - 0x3ac]
call fcn.0040acf0
push eax
call fcn.00495129
add esp, 8
mov dword [ebp - 0x3dc], eax
cmp dword [ebp - 0x3dc], 0
jne 0x4df900
mov dword [ebp - 0x410], 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3ac]
call fcn.00402c30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.00402c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3d0]
call fcn.00402ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f0]
call fcn.00402ab0
mov eax, dword [ebp - 0x410]
jmp 0x4dfb0f
mov dword [ebp - 0x2f4], 0x28
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp - 0x2f4]
push ecx
call fcn.0048e173
add esp, 4
mov dword [ebp - 0x414], eax
mov edx, dword [ebp - 0x414]
mov dword [ebp - 0x2fc], edx
cmp dword [ebp - 0x2fc], 0
jne 0x4df98b
mov dword [ebp - 0x418], 0xffffffff
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3ac]
call fcn.00402c30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.00402c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3d0]
call fcn.00402ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f0]
call fcn.00402ab0
mov eax, dword [ebp - 0x418]
jmp 0x4dfb0f
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x2f4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x2f4]
push edx
mov eax, dword [ebp - 0x2fc]
push eax
call fcn.00491940
add esp, 0x10
mov ecx, dword [ebp - 0x3dc]
push ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 0x2f4]
push edx
push 1
mov eax, dword [ebp - 0x2fc]
push eax
call fcn.004952de
add esp, 0x10
mov dword [ebp - 0x3b0], eax
mov ecx, dword [ebp - 0x3dc]
push ecx
call fcn.0049500f
add esp, 4
mov edx, dword [ebp - 0x3dc]
push edx
call fcn.00493537
add esp, 4
lea eax, [ebp - 0x3ac]
push eax
mov ecx, dword [ebp - 0x424]
add ecx, 0x64
call fcn.00402c90
push 1
push 1
mov ecx, dword [ebp - 0x2f8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2f8]
mov eax, dword [edx + 0x28]
call eax
push 0
mov ecx, dword [ebp - 0x2f8]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x2f8]
mov eax, dword [edx + 0x30]
call eax
push 1
mov ecx, dword [ebp - 0x424]
call fcn.004e4a10
push 8
call dword [sym.imp.Dump.dll_if_dump]
add esp, 4
test eax, eax
je 0x4dfabc
mov ecx, dword [ebp - 0x424]
add ecx, 0x64
call fcn.0040acf0
mov dword [ebp - 0x41c], eax
push str._entity_task_return_ui_json_filefile_path_1_
lea ecx, [ebp - 0x2d4]
call fcn.0040e500
mov dword [ebp - 0x474], eax
mov ecx, dword [ebp - 0x474]
mov dword [ebp - 0x478], ecx
mov byte [ebp - 4], 9
lea edx, [ebp - 0x41c]
push edx
mov ecx, dword [ebp - 0x478]
call fcn.00440710
push eax
push 8
call dword [sym.imp.Dump.dll_dump]
add esp, 8
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2d4]
call fcn.0040c9f0
xor eax, eax
jne 0x4dfa46
mov dword [ebp - 0x420], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3ac]
call fcn.00402c30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x318]
call fcn.00402c30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3d0]
call fcn.00402ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2f0]
call fcn.00402ab0
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d41
mov esp, ebp
pop ebp
ret 0x10