Function at 0x10010053
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x1003155c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x358], eax
mov dword [ebp - 0x344], edi
mov dword [ebp - 0x33c], edi
call fcn.10002a70
push edi
push edi
call fcn.1000107d
push edi
push 3
call fcn.1000107d
call fcn.1000111d
push edi
push 0x10034f00
call sub.MSVCR100.dll__setjmp3
add esp, 0x18
mov dword [ebp - 0x348], eax
cmp eax, edi
jne 0x10010070
mov esi, dword [sym.imp.MSVCR100.dll_malloc]
push 0x104
call esi
add esp, 4
mov dword [0x10034dc4], eax
cmp eax, edi
jne 0x1000f8f5
push 0x67
call fcn.10001046
add esp, 4
mov ecx, dword [0x10031530]
lea edx, [ecx*4]
push edx
call esi
add esp, 4
mov dword [0x10034dc0], eax
cmp eax, edi
jne 0x1000f91b
push 0x67
call fcn.10001046
add esp, 4
mov eax, dword [0x10034dc4]
push 0x104
push edi
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x358]
mov edx, dword [ebp + 8]
push 0x10034de0
push ecx
push edx
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x21c]
lea esi, [ebp - 0x118]
mov ebx, 0x10034fc0
call fcn.1000ab70
add esp, 0x18
xor eax, eax
lea ebx, [ebx]
mov cl, byte [eax + 0x10034de0]
mov byte [eax + 0x100350e0], cl
inc eax
test cl, cl
jne 0x1000f960
mov edi, 0x100350e0
call fcn.10002be0
test eax, eax
je 0x1000f9a5
push str..asm
push eax
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
jne 0x1000f9a5
mov esi, 1
push esi
push str..amx
push edi
call fcn.100010be
jmp 0x1000f9bb
push 0
push str..amx
push 0x100350e0
call fcn.100010be
mov esi, 1
add esp, 0xc
cmp dword [0x100334fc], 0
push esi
je 0x1000f9cf
push str..lst
jmp 0x1000f9d4
push str..asm
push 0x10034de0
call fcn.100010be
mov eax, 0x10034fc0
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000f9f0
sub eax, edx
je 0x1000fa0b
push 0x10034fc0
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
jmp 0x1000fa19
cmp dword [0x1002f014], 0
jle 0x1000fa19
call fcn.10002eb0
call fcn.10002cb0
mov ecx, dword [0x100334f4]
mov al, byte [0x1003152c]
mov edx, dword [0x1003153c]
mov dword [ebp - 0x34c], ecx
mov byte [0x1003152d], al
mov eax, dword [0x10031548]
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x350], edx
mov dword [ebp - 0x340], eax
call fcn.10001104
add esp, 4
test eax, eax
jne 0x1000fa65
push 0x6c
call fcn.10001046
add esp, 4
push esi
call fcn.10001226
add esp, 4
test eax, eax
je 0x1000fb88
lea edx, [ebp - 0x354]
push edx
call fcn.10001073
push 0
mov ebx, eax
mov dword [ebp - 0x338], 0
call fcn.10001226
mov esi, eax
add esp, 8
test esi, esi
je 0x1000fb52
push esi
call fcn.1000119a
mov edi, eax
add esp, 4
test edi, edi
jne 0x1000fad5
mov edx, dword [0x10034dc4]
mov ecx, esi
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1000fac0
push esi
push 0x64
call fcn.10001046
add esp, 8
push str.file__
push ebx
call fcn.100010f5
push esi
push ebx
call fcn.100010f5
push 0x1002828c
push ebx
call fcn.100010f5
push edi
call fcn.10001212
add esp, 0x1c
test eax, eax
jne 0x1000fb2c
nop
push 0x80
lea eax, [ebp - 0x29c]
push eax
push edi
call fcn.1000147e
lea ecx, [ebp - 0x29c]
push ecx
push ebx
call fcn.100010f5
push edi
call fcn.10001212
add esp, 0x18
test eax, eax
je 0x1000fb00
push edi
call fcn.100012e4
mov eax, dword [ebp - 0x338]
inc eax
push eax
mov dword [ebp - 0x338], eax
call fcn.10001226
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000faa2
push ebx
call fcn.100012e4
mov ecx, dword [ebp - 0x354]
mov edx, dword [0x10034dc4]
add esp, 4
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1000fb67
mov edx, dword [ebp - 0x354]
push edx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov esi, 1
jmp 0x1000fba4
push 0
call fcn.10001226
mov edx, dword [0x10034dc4]
add esp, 4
mov cl, byte [eax]
mov byte [edx], cl
add eax, esi
add edx, esi
test cl, cl
jne 0x1000fb98
mov eax, dword [0x10034dc4]
push eax
call fcn.1000119a
add esp, 4
mov dword [0x10033574], eax
test eax, eax
jne 0x1000fbcc
mov ecx, dword [0x10034dc4]
push ecx
push 0x64
call fcn.10001046
add esp, 8
push 0x10034de0
mov dword [0x10033514], esi
call fcn.100010e1
add esp, 4
mov dword [0x10033578], eax
test eax, eax
jne 0x1000fbf7
push 0x10034de0
push 0x65
call fcn.10001046
add esp, 8
cmp dword [0x100334f8], 0
jne 0x1000fc31
cmp dword [0x100334fc], 0
jne 0x1000fc31
push 0x100350e0
call fcn.100010eb
add esp, 4
mov dword [ebp - 0x33c], eax
test eax, eax
jne 0x1000fc3b
push 0x100350e0
push 0x65
call fcn.10001046
add esp, 8
jmp 0x1000fc3b
mov dword [ebp - 0x33c], 0
call fcn.1000ad40
xor edi, edi
cmp dword [0x10031b34], edi
jle 0x1000fc7d
lea ebx, [ebx]
mov edx, dword [0x10033574]
push 0xfff
push 0x10033dc0
push edx
call fcn.1000147e
add esp, 0xc
test eax, eax
je 0x1000fc73
add dword [0x10033518], esi
add edi, esi
cmp edi, dword [0x10031b34]
jl 0x1000fc50
cmp dword [0x100334fc], 0
mov eax, dword [0x10033518]
mov dword [0x10031b34], eax
mov dword [0x10033d78], esi
je 0x1000fcf4
cmp dword [0x1003153c], 0
mov ecx, str.true
jne 0x1000fca9
mov ecx, str.false
cmp dword [0x100334f4], 0
mov eax, str.true
jne 0x1000fcbc
mov eax, str.false
mov edx, dword [0x10031548]
push edx
push ecx
push eax
movsx eax, byte [0x1003152c]
push eax
lea ecx, [ebp - 0x334]
push str.pragma_ctrlchar_0x_02x_npragma_pack__s_npragma_semicolon__s_npragma_tabsize__d_n
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, dword [0x10033578]
lea edx, [ebp - 0x334]
push edx
push eax
call fcn.1000114a
add esp, 0x20
mov ecx, dword [0x10034dc4]
push ecx
call fcn.1000136b
mov edx, dword [0x10033574]
push edx
mov dword [0x10031b3c], 0
call fcn.1000149c
mov edi, dword [ebp - 0x34c]
add esp, 8
mov ebx, eax
push 0x100338e0
call fcn.100048d0
push 0
push esi
push 0
push 0x100338e0
call fcn.10001280
call fcn.10001370
call fcn.100013e3
call fcn.10002980
mov al, byte [0x1003152d]
mov ecx, dword [ebp - 0x350]
mov edx, dword [ebp - 0x340]
push 0
push 0
mov byte [0x1003152c], al
mov dword [0x100334f4], edi
mov dword [0x1003153c], ecx
mov dword [0x10031548], edx
call fcn.1000107d
mov eax, dword [0x10033574]
push ebx
push eax
mov dword [0x10033570], eax
mov dword [0x10033514], esi
call fcn.10001410
mov eax, dword [0x10031b34]
mov dword [0x10033518], eax
mov dword [0x10031b38], 0
mov dword [0x10033d78], esi
call fcn.10006f50
mov ecx, dword [0x10034dc4]
push ecx
call fcn.1000135c
lea eax, [ebp - 0x118]
add esp, 0x28
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000fdc8
sub eax, edx
je 0x1000fe40
mov ecx, str.default.inc
lea eax, [ebp - 0x118]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x1000fe00
test dl, dl
je 0x1000fdfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x1000fe00
add eax, 2
add ecx, 2
test dl, dl
jne 0x1000fde0
xor eax, eax
jmp 0x1000fe05
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x1000fe1c
push esi
push eax
lea edx, [ebp - 0x118]
push edx
call fcn.10001019
add esp, 0xc
jmp 0x1000fe40
lea eax, [ebp - 0x118]
push eax
call fcn.100010b9
add esp, 4
test eax, eax
jne 0x1000fe40
lea ecx, [ebp - 0x118]
push ecx
push 0x64
call fcn.10001046
add esp, 8
call fcn.10001352
call fcn.1000f470
add dword [0x10031b3c], esi
cmp dword [0x10031b38], 0
jne 0x1000fd21
mov esi, 2
push 0x100338e0
mov dword [0x10033d78], esi
call fcn.100013fc
add esp, 4
cmp dword [0x1003357c], 0
je 0x1000ff12
call dword [sym.imp.MSVCR100.dll___iob_func]
lea edi, [eax + 0x20]
lea eax, [ebp - 0x21c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000fe94
sub eax, edx
je 0x1000feb6
lea edx, [ebp - 0x21c]
push 0x100265a8
push edx
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov edi, eax
test edi, edi
je 0x1000fef5
push 0
call fcn.10001226
push 0x100338e0
mov ecx, eax
call fcn.10007a50
lea eax, [ebp - 0x21c]
add esp, 8
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000fee0
sub eax, edx
je 0x1000fef5
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
mov eax, dword [0x10031b40]
test eax, eax
je 0x1000ff12
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov dword [0x10031b40], 0
cmp dword [0x100334fc], 0
jne 0x10010070
push 0x100338e0
call fcn.100048d0
push 0
push 1
push 0
push 0x100338e0
call fcn.10001280
call fcn.100013e3
call fcn.10002980
mov al, byte [0x1003152d]
mov ecx, dword [ebp - 0x34c]
mov edx, dword [ebp - 0x350]
mov byte [0x1003152c], al
mov eax, dword [ebp - 0x340]
push 0
push 0
mov dword [0x100334f4], ecx
mov dword [0x1003153c], edx
mov dword [0x10031548], eax
call fcn.1000107d
mov eax, dword [0x10033574]
push ebx
push eax
mov dword [0x10033570], eax
mov dword [0x10033514], 1
call fcn.10001410
mov ecx, dword [0x10031b34]
mov dword [0x10033518], ecx
call fcn.1000111d
mov dword [0x10033d78], esi
call fcn.10006f50
push 0x100338e0
call fcn.100011e5
mov edx, dword [0x10034dc4]
push edx
call fcn.1000135c
mov eax, dword [0x10034dc4]
push eax
call fcn.10001307
lea eax, [ebp - 0x118]
add esp, 0x30
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ffe0
sub eax, edx
je 0x10010040
mov ecx, str.default.inc
lea eax, [ebp - 0x118]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10010014
test dl, dl
je 0x10010010
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10010014
add eax, esi
add ecx, esi
test dl, dl
jne 0x1000fff6
xor eax, eax
jmp 0x10010019
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10010031
push 1
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.10001019
add esp, 0xc
jmp 0x10010040
lea edx, [ebp - 0x118]
push edx
call fcn.100010b9
add esp, 4
call fcn.10001352
call fcn.1000f470
call fcn.1000143d
push 0
push 1
push 0
push 0x100338e0
call fcn.10008870
add esp, 0x10
test eax, eax
jne 0x10010070
push 0xd
call fcn.10001046
add esp, 4
mov eax, dword [0x10033570]
xor esi, esi
cmp eax, esi
je 0x1001008a
push eax
call fcn.100012e4
add esp, 4
mov dword [0x10033570], esi
cmp dword [0x100334f8], esi
jne 0x100100d1
cmp dword [0x100334fc], esi
jne 0x100100d1
cmp dword [0x100334ec], esi
jne 0x100100d1
cmp dword [ebp - 0x348], esi
jne 0x100100d1
mov eax, dword [0x10033578]
push eax
call fcn.100013ca
mov ecx, dword [0x10033578]
mov edx, dword [ebp - 0x33c]
push ecx
push edx
call fcn.100010fa
add esp, 0xc
mov dword [ebp - 0x344], eax
mov ecx, dword [0x10033578]
cmp ecx, esi
je 0x10010104
cmp dword [0x100334f8], esi
jne 0x100100f2
cmp dword [0x100334fc], esi
jne 0x100100f2
mov eax, 1
jmp 0x100100f4
xor eax, eax
push eax
push ecx
call fcn.1000141f
add esp, 8
mov dword [0x10033578], esi
mov eax, dword [ebp - 0x33c]
cmp eax, esi
je 0x10010129
xor ecx, ecx
cmp dword [0x100334ec], esi
setne cl
push ecx
push eax
call fcn.100013f2
add esp, 8
mov dword [ebp - 0x33c], esi
cmp dword [0x100334ec], esi
jne 0x100102c7
mov eax, 0x10034fc0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10010140
sub eax, edx
jne 0x100102c7
lea edx, [ebp - 0x35c]
push edx
push 0x100338e0
call fcn.10004ba0
mov ecx, dword [0x10033510]
mov edx, dword [0x100334e0]
add esp, 8
mov ebx, eax
xor edi, edi
cmp dword [0x1003350c], esi
mov esi, dword [0x10031544]
mov dword [ebp - 0x340], ebx
jle 0x100101af
mov eax, dword [0x100334e4]
add eax, dword [ebp - 0x344]
test ecx, ecx
jne 0x1001019c
lea ebx, [esi + edx]
lea eax, [eax + ebx*4]
mov ebx, dword [ebp - 0x340]
cmp eax, dword [0x1003350c]
jl 0x100101af
mov edi, 1
test ecx, ecx
jle 0x100101c2
add edx, esi
add edx, edx
add edx, edx
cmp edx, ecx
jb 0x100101c2
mov edi, 1
test byte [0x10031534], 2
jne 0x100101e3
cmp dword [0x1002f014], 2
jge 0x100101e3
lea eax, [ebx + 0x20]
cmp eax, esi
jge 0x100101e3
test edi, edi
je 0x100102c7
mov esi, dword [ebp - 0x344]
push esi
push str.Header_size:________8ld_bytes_n
call fcn.10001217
mov ecx, dword [0x100334e4]
push ecx
push str.Code_size:__________8ld_bytes_n
call fcn.10001217
mov edx, dword [0x100334e0]
lea eax, [edx*4]
push eax
push str.Data_size:__________8ld_bytes_n
call fcn.10001217
mov ecx, dword [0x10031544]
lea edx, [ecx*4]
push edx
push str.Stack_heap_size:____8ld_bytes_
call fcn.10001217
push str.estimated_max._usage
call fcn.10001217
add esp, 0x24
cmp dword [ebp - 0x35c], 0
je 0x1001025a
push str.:_unknown__due_to_recursion_n
call fcn.10001217
add esp, 4
jmp 0x10010288
test byte [0x10033550], 1
je 0x10010272
push str.:_unknown__due_to_the__sleep__instruction_n
call fcn.10001217
add esp, 4
jmp 0x10010288
lea eax, [ebx*4]
push eax
push ebx
push str._ld_cells___ld_bytes__n
call fcn.10001217
add esp, 0xc
mov edx, dword [0x10031544]
add edx, dword [0x100334e0]
mov eax, dword [0x100334e4]
lea ecx, [eax + edx*4]
add ecx, esi
push ecx
push str.Total_requirements:_8ld_bytes_n
call fcn.10001217
mov ecx, dword [0x10033510]
add esp, 8
test edi, edi
je 0x100102c7
add ecx, dword [0x1003350c]
push ecx
push 0x6a
call fcn.10001046
add esp, 8
cmp dword [0x10034dc4], 0
je 0x10010301
push 1
call fcn.10001226
add esp, 4
test eax, eax
je 0x100102ed
mov eax, dword [0x10034dc4]
push eax
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
mov ecx, dword [0x10034dc4]
mov esi, dword [sym.imp.MSVCR100.dll_free]
push ecx
call esi
add esp, 4
jmp 0x10010307
mov esi, dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [0x10034dc0]
test eax, eax
je 0x10010316
push eax
call esi
add esp, 4
call fcn.1000140b
call fcn.100014b5
push 1
push 1
push 0
push 0x10034f40
call fcn.10001280
push 1
push 1
push 0
push 0x100338e0
call fcn.10001280
push 0x10033d80
mov dword [0x1003351c], 0
call fcn.100014c9
push 0x100334b8
call fcn.100011f9
push 0x100334c0
call fcn.100011f9
push 0x10033560
call fcn.100011f9
push 0x10033568
call fcn.100011f9
add esp, 0x34
call fcn.10001253
call fcn.10001172
call fcn.10001023
call fcn.10001244
call fcn.10001433
call fcn.100013e3
call fcn.10001050
mov eax, dword [0x10031b40]
test eax, eax
je 0x100103b1
push eax
call esi
add esp, 4
call fcn.1000137f
call fcn.10001370
mov esi, dword [0x100334ec]
test esi, esi
je 0x10010400
mov eax, 0x10034fc0
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100103d0
sub eax, edx
jne 0x100103f9
mov eax, 0x100280c8
cmp esi, 1
jg 0x100103ea
mov eax, 0x10027978
push eax
push esi
push str._n_d_Error_s._n
call fcn.10001217
add esp, 0xc
mov esi, 1
jmp 0x1001045f
mov esi, dword [0x100334f0]
test esi, esi
je 0x1001043f
mov eax, 0x10034fc0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10010412
sub eax, edx
jne 0x1001043b
mov eax, 0x100280c8
cmp esi, 1
jg 0x1001042c
mov eax, 0x10027978
push eax
push esi
push str._n_d_Warning_s._n
call fcn.10001217
add esp, 0xc
xor esi, esi
jmp 0x1001045f
mov esi, dword [ebp - 0x348]
test esi, esi
jne 0x1001045f
cmp dword [0x1002f014], 2
jl 0x1001045f
push str._nDone._n
call fcn.10001217
add esp, 4
mov edx, dword [0x10031b44]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1001048b
push 0
push esi
push str.PawnNotify
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push eax
mov eax, dword [0x10031b44]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002344a
mov esp, ebp
pop ebp
ret