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

Disassembly:
push 0xffffffffffffffff
push 0x562065
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4bc
push ebp
mov ebp, ecx
push esi
push 1
lea ecx, [esp + 0x40]
call dword [0x5711f0]
mov eax, dword [0x5711ec]
mov esi, dword [esp + 0x4d4]
mov dword [esp + 0x4cc], 0
mov ecx, dword [eax]
push ecx
push 0x21
push esi
lea ecx, [esp + 0x48]
call dword [0x5711e8]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x44], 6
je 0x46f189
lea ecx, [esp + 0x50]
mov dword [esp + 0x4cc], 0xffffffff
call dword [0x5711e4]
lea ecx, [esp + 0x50]
call dword [0x5711e0]
mov eax, 2
jmp 0x470059
push ebx
push edi
mov ecx, ebp
call fcn.00471a70
push esi
lea ecx, [esp + 0x20]
call fcn.005133da
push 0x5c
lea ecx, [esp + 0x20]
mov byte [esp + 0x4d8], 1
call fcn.005133ce
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.005133c8
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4d8], 2
call fcn.005133d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x4d4], 1
call fcn.005132cc
mov eax, dword [esp + 0x44]
mov ebx, dword [0x5711dc]
mov edx, dword [eax + 4]
test byte [esp + edx + 0x4c], 1
jne 0x46f9da
mov edi, dword [0x571290]
mov eax, dword [eax + 4]
mov ecx, dword [esp + eax + 0x78]
lea eax, [esp + eax + 0x44]
test ecx, ecx
jge 0x46f21b
add eax, 0x38
push eax
call dword [0x5711d8]
add esp, 4
mov eax, dword [esp + 0x48]
mov ebx, dword [0x5711dc]
push 0xa
lea ecx, [esp + 0xd0]
push 0x400
inc eax
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], eax
call ebx
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x78]
lea eax, [esp + eax + 0x44]
test ecx, ecx
jge 0x46f25f
add eax, 0x38
push eax
call dword [0x5711d4]
add esp, 4
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x14]
call fcn.005133da
push str.
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d8], 3
call fcn.00513938
cmp eax, 0xffffffff
jne 0x46f9c5
push str.PROJECTTITLE
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f2df
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea edx, [esp + 0x18]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00513410
push eax
lea ecx, [ebp + 4]
mov byte [esp + 0x4d8], 4
call fcn.005133d4
lea ecx, [esp + 0x18]
mov byte [esp + 0x4d4], 3
call fcn.005132cc
push str.PROJECTLANGUAGE
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
jne 0x46f305
push str.PROJECLANGUAGE
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f375
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00513410
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d8], 5
call fcn.005133d4
lea ecx, [esp + 0x20]
mov byte [esp + 0x4d4], 3
call fcn.005132cc
mov ecx, dword [esp + 0x10]
mov esi, dword [0x571264]
push 0x5b3e14
push ecx
call esi
add esp, 8
test eax, eax
jne 0x46f367
mov eax, dword [ebp + 0x30]
or ah, 1
mov dword [ebp + 0x30], eax
jmp 0x46f37b
mov edx, dword [ebp + 0x30]
and dh, 0xfe
or dh, 2
mov dword [ebp + 0x30], edx
jmp 0x46f37b
mov esi, dword [0x571264]
push str.PROJECTTYPE
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f42b
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00513410
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d8], 6
call fcn.005133d4
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d4], 3
call fcn.005132cc
mov ecx, dword [esp + 0x10]
push 0x5ba6c4
push ecx
call esi
add esp, 8
test eax, eax
jne 0x46f3ed
mov eax, dword [ebp + 0x30]
or al, 1
mov dword [ebp + 0x30], eax
jmp 0x46f42b
mov edx, dword [esp + 0x10]
push 0x5ba6c0
push edx
call esi
add esp, 8
test eax, eax
jne 0x46f40c
mov eax, dword [ebp + 0x30]
and al, 0xfe
or al, 2
mov dword [ebp + 0x30], eax
jmp 0x46f42b
mov ecx, dword [esp + 0x10]
push str.boot
push ecx
call esi
add esp, 8
test eax, eax
jne 0x46f42b
mov edx, dword [ebp + 0x30]
and edx, 0xfffffffe
or edx, 4
mov dword [ebp + 0x30], edx
push str.INTERMEDIATEFILEPATH
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f4c3
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.00513410
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push eax
lea edx, [esp + 0xb0]
push ecx
push edx
mov byte [esp + 0x4e0], 7
call fcn.004ffef0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x4d8], 8
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*2]
lea ecx, [ebp + edx*8 + 0x54]
call fcn.005133d4
lea ecx, [esp + 0xac]
mov byte [esp + 0x4d4], 7
call fcn.005132cc
lea ecx, [esp + 0xc4]
mov byte [esp + 0x4d4], 3
call fcn.005132cc
push str.OUTPUTFILEPATH
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f55b
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0xc4]
push eax
call fcn.00513410
mov eax, dword [eax]
mov ecx, dword [esp + 0x1c]
push eax
lea edx, [esp + 0xb4]
push ecx
push edx
mov byte [esp + 0x4e0], 9
call fcn.004ffef0
add esp, 0xc
push eax
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x4d8], 0xa
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*2]
lea ecx, [ebp + edx*8 + 0x58]
call fcn.005133d4
lea ecx, [esp + 0xb0]
mov byte [esp + 0x4d4], 9
call fcn.005132cc
lea ecx, [esp + 0xc0]
mov byte [esp + 0x4d4], 3
call fcn.005132cc
push str.ADDITIONALLIB
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f5be
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0xbc]
push eax
call fcn.00513410
push eax
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x4d8], 0xb
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*2]
lea ecx, [ebp + edx*8 + 0x94]
call fcn.005133d4
lea ecx, [esp + 0xb8]
mov byte [esp + 0x4d4], 3
call fcn.005132cc
push str.OUTPUTFORMAT
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f611
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.00513410
mov eax, dword [eax]
push eax
call edi
add esp, 4
lea ecx, [esp + 0xc8]
mov esi, eax
call fcn.005132cc
mov ecx, dword [ebp + 0x38]
push esi
push ecx
mov ecx, ebp
call fcn.004737f0
push str.PRINTFVERSION
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f666
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea edx, [esp + 0xa8]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00513410
mov eax, dword [eax]
push eax
call edi
mov ecx, dword [ebp + 0x38]
add esp, 4
lea edx, [ecx + ecx*8]
lea ecx, [ecx + edx*2]
mov dword [ebp + ecx*8 + 0xb4], eax
lea ecx, [esp + 0xa8]
call fcn.005132cc
push str.DATASECTION
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f6bb
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea edx, [esp + 0xb4]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00513410
mov eax, dword [eax]
push eax
call edi
mov ecx, dword [ebp + 0x38]
add esp, 4
lea edx, [ecx + ecx*8]
lea ecx, [ecx + edx*2]
mov dword [ebp + ecx*8 + 0xcc], eax
lea ecx, [esp + 0xb4]
call fcn.005132cc
push str.STACKSECTION
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f710
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea edx, [esp + 0xbc]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00513410
mov eax, dword [eax]
push eax
call edi
mov ecx, dword [ebp + 0x38]
add esp, 4
lea edx, [ecx + ecx*8]
lea ecx, [ecx + edx*2]
mov dword [ebp + ecx*8 + 0xc8], eax
lea ecx, [esp + 0xbc]
call fcn.005132cc
push str.BOOTSECTION
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f75f
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea edx, [esp + 0x24]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00513410
mov eax, dword [eax]
push eax
call edi
mov ecx, dword [ebp + 0x38]
add esp, 4
lea edx, [ecx + ecx*8]
lea ecx, [ecx + edx*2]
mov dword [ebp + ecx*8 + 0xc4], eax
lea ecx, [esp + 0x24]
call fcn.005132cc
push str.OPTIMIZATIONS
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f7ab
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea edx, [esp + 0x30]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00513410
mov eax, dword [eax]
push eax
call edi
mov ecx, dword [ebp + 0x38]
add esp, 4
lea edx, [ecx + ecx*8]
lea ecx, [ecx + edx*2]
mov dword [ebp + ecx*8 + 0x64], eax
lea ecx, [esp + 0x30]
call fcn.005132cc
push str.GENERATEMAPFILE
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f7fa
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea edx, [esp + 0x38]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00513410
mov eax, dword [eax]
push eax
call edi
mov ecx, dword [ebp + 0x38]
add esp, 4
lea edx, [ecx + ecx*8]
lea ecx, [ecx + edx*2]
mov dword [ebp + ecx*8 + 0x9c], eax
lea ecx, [esp + 0x38]
call fcn.005132cc
push str.DISASSEMBLY
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f849
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea edx, [esp + 0x28]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00513410
mov eax, dword [eax]
push eax
call edi
mov ecx, dword [ebp + 0x38]
add esp, 4
lea edx, [ecx + ecx*8]
lea ecx, [ecx + edx*2]
mov dword [ebp + ecx*8 + 0xa0], eax
lea ecx, [esp + 0x28]
call fcn.005132cc
push str.REPORTCODESIZE
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f898
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea edx, [esp + 0x2c]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00513410
mov eax, dword [eax]
push eax
call edi
mov ecx, dword [ebp + 0x38]
add esp, 4
lea edx, [ecx + ecx*8]
lea ecx, [ecx + edx*2]
mov dword [ebp + ecx*8 + 0xa4], eax
lea ecx, [esp + 0x2c]
call fcn.005132cc
push str.WARNINGASERROR
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f8e4
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea edx, [esp + 0x34]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00513410
mov eax, dword [eax]
push eax
call edi
mov ecx, dword [ebp + 0x38]
add esp, 4
lea edx, [ecx + ecx*8]
lea ecx, [ecx + edx*2]
mov dword [ebp + ecx*8 + 0x68], eax
lea ecx, [esp + 0x34]
call fcn.005132cc
push str.ADDITIONALOPTIONS
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f93e
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea edx, [esp + 0x40]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00513410
push eax
mov eax, dword [ebp + 0x38]
mov byte [esp + 0x4d8], 0xc
lea ecx, [eax + eax*8]
lea edx, [eax + ecx*2]
lea ecx, [ebp + edx*8 + 0x74]
call fcn.005133d4
lea ecx, [esp + 0x40]
mov byte [esp + 0x4d4], 3
call fcn.005132cc
push str.DLLVERSION
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46f99a
push 0x3d
lea ecx, [esp + 0x14]
call fcn.0051381e
inc eax
lea ecx, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
call fcn.00513410
mov eax, dword [eax]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x3c]
test eax, eax
sete bl
call fcn.005132cc
test bl, bl
je 0x46f98d
push str.avr2
jmp 0x46f992
push str.avr5
lea ecx, [ebp + 0x3c]
call fcn.005135fc
lea ecx, [esp + 0x10]
mov byte [esp + 0x4d4], 1
call fcn.005132cc
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x4c], 1
je 0x46f1ff
mov ebx, dword [0x5711dc]
jmp 0x46f9da
lea ecx, [esp + 0x10]
mov byte [esp + 0x4d4], 1
call fcn.005132cc
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 4]
add eax, 4
test byte [esp + edx + 0x4c], 1
jne 0x470014
mov esi, dword [0x571278]
mov eax, dword [eax]
mov ecx, dword [esp + eax + 0x78]
lea eax, [esp + eax + 0x44]
test ecx, ecx
jge 0x46fa0c
add eax, 0x38
push eax
call dword [0x5711d8]
add esp, 4
mov ecx, dword [esp + 0x48]
push 0xa
inc ecx
push 0x400
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0x50]
call ebx
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x78]
lea eax, [esp + eax + 0x44]
test ecx, ecx
jge 0x46fa4a
add eax, 0x38
push eax
call dword [0x5711d4]
add esp, 4
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x14]
call fcn.005133da
mov edx, dword [esp + 0x10]
push str.BEGIN
push edx
mov byte [esp + 0x4dc], 0xd
call esi
add esp, 8
test eax, eax
jne 0x46ffd4
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
lea eax, [esp + ecx + 0x44]
mov ecx, dword [esp + ecx + 0x78]
test ecx, ecx
jge 0x46fa9a
add eax, 0x38
push eax
call dword [0x5711d8]
add esp, 4
mov edx, dword [esp + 0x48]
push 0xa
inc edx
push 0x400
mov dword [esp + 0x50], edx
lea edx, [esp + 0xd4]
push edx
lea ecx, [esp + 0x50]
call ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 4]
lea eax, [esp + ecx + 0x44]
mov ecx, dword [esp + ecx + 0x78]
test ecx, ecx
jge 0x46fad8
add eax, 0x38
push eax
call dword [0x5711d4]
add esp, 4
lea edx, [esp + 0xcc]
lea ecx, [esp + 0x3c]
push edx
call fcn.005133da
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d8], 0xe
call fcn.005133d4
lea ecx, [esp + 0x3c]
mov byte [esp + 0x4d4], 0xd
call fcn.005132cc
mov eax, dword [esp + 0x10]
push str.END
push eax
call esi
add esp, 8
test eax, eax
je 0x46ffd4
push 0x2c
call fcn.00513446
mov esi, eax
add esp, 4
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x4d4], 0xf
je 0x46fb5e
mov ecx, esi
call fcn.00494e50
mov dword [esi], 0x57c7a4
mov dword [esi + 0x10], 2
mov dword [esi + 0x28], 0
mov edi, esi
jmp 0x46fb60
xor edi, edi
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
push eax
mov ecx, edi
mov byte [esp + 0x4d8], 0xd
call dword [edx + 8]
push str.Source
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46fb95
mov edx, dword [edi]
push str.c_cpp_cxx_s
mov ecx, edi
call dword [edx + 0x18]
jmp 0x46fbb4
push str.Header
lea ecx, [esp + 0x14]
call fcn.00513938
cmp eax, 0xffffffff
je 0x46fbb4
mov eax, dword [edi]
push str.h_hpp_hxx_inl
mov ecx, edi
call dword [eax + 0x18]
push edi
mov ecx, ebp
call fcn.004954a0
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + edx + 0x78]
test ecx, ecx
lea eax, [esp + edx + 0x44]
jge 0x46fbdc
add eax, 0x38
push eax
call dword [0x5711d8]
add esp, 4
mov ecx, dword [esp + 0x48]
push 0xa
inc ecx
lea eax, [esp + 0xd0]
mov dword [esp + 0x4c], ecx
push 0x400
push eax
lea ecx, [esp + 0x50]
call ebx
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + edx + 0x78]
test ecx, ecx
lea eax, [esp + edx + 0x44]
jge 0x46fc1a
add eax, 0x38
push eax
call dword [0x5711d4]
add esp, 4
lea eax, [esp + 0xcc]
lea ecx, [esp + 0x40]
push eax
call fcn.005133da
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d8], 0x10
call fcn.005133d4
lea ecx, [esp + 0x40]
mov byte [esp + 0x4d4], 0xd
call fcn.005132cc
mov ecx, dword [esp + 0x10]
mov esi, dword [0x571278]
push 0x5ba594
push ecx
call esi
add esp, 8
test eax, eax
jne 0x46ff25
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x78]
lea eax, [esp + eax + 0x44]
test ecx, ecx
jge 0x46fc8b
add eax, 0x38
push eax
call dword [0x5711d8]
add esp, 4
mov edx, dword [esp + 0x48]
push 0xa
lea ecx, [esp + 0xd0]
push 0x400
inc edx
push ecx
lea ecx, [esp + 0x50]
mov dword [esp + 0x54], edx
call ebx
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x78]
lea eax, [esp + eax + 0x44]
test ecx, ecx
jge 0x46fcc9
add eax, 0x38
push eax
call dword [0x5711d4]
add esp, 4
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x38]
call fcn.005133da
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d8], 0x11
call fcn.005133d4
lea ecx, [esp + 0x34]
mov byte [esp + 0x4d4], 0xd
call fcn.005132cc
mov edx, dword [esp + 0x10]
push 0x5ba590
push edx
call esi
add esp, 8
test eax, eax
je 0x46ff25
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.004ffef0
push 0x2c
mov byte [esp + 0x4e4], 0x12
call fcn.00513446
mov esi, eax
add esp, 0x10
mov dword [esp + 0x24], esi
test esi, esi
mov byte [esp + 0x4d4], 0x13
je 0x46fd69
mov ecx, esi
call fcn.00494e50
mov dword [esi], 0x57c740
mov dword [esi + 0x10], 3
mov dword [esi + 0x28], 0
jmp 0x46fd6b
xor esi, esi
mov ecx, dword [esp + 0x18]
mov eax, dword [esi]
push ecx
mov ecx, esi
mov byte [esp + 0x4d8], 0x12
call dword [eax + 0x10]
lea ecx, [esp + 0x20]
call fcn.005132d2
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d4], 0x14
call fcn.005132d2
mov edx, dword [esi]
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov byte [esp + 0x4d8], 0x15
call dword [edx + 0xc]
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
lea ecx, [esp + 0x1c]
push edx
push ecx
push eax
mov byte [esp + 0x4e4], 0x16
call fcn.004fffe0
add esp, 0x10
lea ecx, [esp + 0x2c]
mov byte [esp + 0x4d4], 0x15
call fcn.005132cc
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x18]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
je 0x46fe2b
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push 0x2e
push eax
call fcn.0051408e
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x4d8], 0x17
call fcn.005134be
lea ecx, [esp + 0x28]
mov byte [esp + 0x4d4], 0x15
call fcn.005132cc
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
push esi
mov ecx, edi
call fcn.004954a0
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + edx + 0x78]
test ecx, ecx
lea eax, [esp + edx + 0x44]
jge 0x46fe5f
add eax, 0x38
push eax
call dword [0x5711d8]
add esp, 4
mov ecx, dword [esp + 0x48]
push 0xa
inc ecx
lea eax, [esp + 0xd0]
mov dword [esp + 0x4c], ecx
push 0x400
push eax
lea ecx, [esp + 0x50]
call ebx
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + edx + 0x78]
test ecx, ecx
lea eax, [esp + edx + 0x44]
jge 0x46fe9d
add eax, 0x38
push eax
call dword [0x5711d4]
add esp, 4
lea eax, [esp + 0xcc]
lea ecx, [esp + 0x38]
push eax
call fcn.005133da
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d8], 0x18
call fcn.005133d4
lea ecx, [esp + 0x38]
mov byte [esp + 0x4d4], 0x15
call fcn.005132cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d4], 0x14
call fcn.005132cc
lea ecx, [esp + 0x20]
mov byte [esp + 0x4d4], 0x12
call fcn.005132cc
lea ecx, [esp + 0x18]
mov byte [esp + 0x4d4], 0xd
call fcn.005132cc
mov ecx, dword [esp + 0x10]
push 0x5ba590
push ecx
call dword [0x571278]
add esp, 8
test eax, eax
jne 0x46fd14
mov esi, dword [0x571278]
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x78]
lea eax, [esp + eax + 0x44]
test ecx, ecx
jge 0x46ff45
add eax, 0x38
push eax
call dword [0x5711d8]
add esp, 4
mov ecx, dword [esp + 0x48]
push 0xa
inc ecx
push 0x400
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0xd4]
push ecx
lea ecx, [esp + 0x50]
call ebx
mov edx, dword [esp + 0x44]
mov eax, dword [edx + 4]
mov ecx, dword [esp + eax + 0x78]
lea eax, [esp + eax + 0x44]
test ecx, ecx
jge 0x46ff83
add eax, 0x38
push eax
call dword [0x5711d4]
add esp, 4
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x34]
call fcn.005133da
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4d8], 0x19
call fcn.005133d4
lea ecx, [esp + 0x30]
mov byte [esp + 0x4d4], 0xd
call fcn.005132cc
mov edx, dword [esp + 0x10]
push str.END
push edx
call esi
add esp, 8
test eax, eax
jne 0x46fb23
mov esi, dword [0x571278]
mov eax, dword [esp + 0x10]
push str.BEGIN_OPENFILE
push eax
call esi
add esp, 8
mov byte [esp + 0x4d4], 1
test eax, eax
lea ecx, [esp + 0x10]
je 0x47000f
call fcn.005132cc
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx + 4]
lea eax, [ecx + 4]
test byte [esp + edx + 0x4c], 1
je 0x46f9f1
jmp 0x470014
call fcn.005132cc
lea ecx, [esp + 0x44]
call dword [0x5711d0]
mov ecx, ebp
call fcn.00470680
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4d4], 0
call fcn.005132cc
lea ecx, [esp + 0x58]
mov dword [esp + 0x4d4], 0xffffffff
call dword [0x5711e4]
lea ecx, [esp + 0x58]
call dword [0x5711e0]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x4c4]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x4c8
ret 4