Function at 0x4a5dc0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x5bd254]
xor eax, esp
mov dword [esp + 0x208], eax
lea eax, [esp + 8]
push eax
push 0x580cbb
push sym.convertifd.exe_i_ifd
push 0x581a4c
call sym.convertifd.exe_GetAndProcessFileDirectory
lea eax, [esp + 0x18]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4a5df7
sub eax, edx
cmp byte [esp + eax + 7], 0x5c
push edi
je 0x4a5e25
lea edi, [esp + 0xc]
add edi, 0xffffffff
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x4a5e11
mov cx, word [0x581fdc]
mov word [edi], cx
lea eax, [esp + 0xc]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x4a5e30
mov edx, dword [str.JfWfFlds.FIF]
mov ecx, dword [0x5834a4]
mov dword [eax], edx
mov edx, dword [0x5834a8]
mov dword [eax + 4], ecx
mov cl, byte [0x5834ac]
mov dword [eax + 8], edx
lea edx, [esp + 0xc]
push 0x581e84
push edx
mov byte [eax + 0xc], cl
call fcn.00515a07
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a5e9f
lea eax, [esp + 0xc]
push eax
push 0xffffdcb7
call sym.convertifd.exe_IpCMessage
add esp, 8
xor eax, eax
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00511a80
add esp, 0x20c
ret
push esi
push 0x800
call sym.convertifd.exe_IpMalloc
mov esi, eax
add esp, 4
test esi, esi
je 0x4a628b
push 0x800
push 0
push esi
call fcn.00511e90
push edi
push 0x7ff
push 1
push esi
call fcn.00515cb6
mov dword [esp + 0x28], eax
add eax, 0xffffffff
add esp, 0x1c
cmp eax, 0x7fe
ja 0x4a626d
push ebx
push ebp
push edi
call fcn.005158c7
push str.DEFAULT_AGENT
push esi
call fcn.005173a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4a5fb7
mov ecx, dword [sym.convertifd.exe_i_window]
mov edx, dword [0x6a124c]
push sym.convertifd.exe_WfAgentDlg
push ecx
push str.WorkflowFields
push edx
call sym.convertifd.exe_JfDialogBox
add esp, 0x10
test eax, eax
je 0x4a6050
mov eax, dword [0x606e48]
test eax, eax
je 0x4a6050
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4a5f40
sub eax, edx
lea ebp, [eax - 0xd]
test ebp, ebp
mov dword [esp + 0x10], eax
jle 0x4a5f74
mov eax, dword [esp + 0x14]
mov ecx, ebx
sub ecx, esi
cmp eax, ecx
jle 0x4a5f72
lea edi, [esi + ebp]
mov dl, byte [eax + esi]
mov byte [edi + eax], dl
sub eax, 1
cmp eax, ecx
jg 0x4a5f65
test ebp, ebp
jge 0x4a5f8c
lea eax, [ebx + 0xd]
lea edx, [ebx + ebp + 0xd]
sub edx, eax
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4a5f80
mov eax, dword [esp + 0x10]
mov ecx, dword [0x606e48]
push eax
push ecx
push ebx
call fcn.00513780
mov edx, dword [0x606e48]
push edx
call sym.convertifd.exe_IpFree
add esp, 0x10
mov dword [0x606e48], 0
push str.DEFAULT_ACTION
push esi
call fcn.005173a0
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x10], edi
je 0x4a60e2
cmp dword [0x606e58], 1
jne 0x4a6074
mov ebp, dword [0x606e54]
mov eax, ebp
lea edx, [eax + 1]
jmp 0x4a5ff0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4a5ff0
sub eax, edx
mov ebx, eax
je 0x4a6076
cmp byte [ebp], 0x22
je 0x4a6076
push ebp
lea eax, [esp + 0x11c]
push str.___s__
push eax
call fcn.005135ca
mov ebx, dword [0x606e54]
lea eax, [esp + 0x124]
mov edx, ebx
mov ecx, eax
add esp, 0xc
sub edx, ecx
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4a6030
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4a6041
sub eax, edx
mov ebx, eax
jmp 0x4a6076
push esi
call sym.convertifd.exe_IpFree
add esp, 4
xor eax, eax
pop ebp
pop ebx
pop esi
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00511a80
add esp, 0x20c
ret
xor ebx, ebx
lea ebp, [ebx - 0xe]
test ebp, ebp
jle 0x4a60a3
mov eax, dword [esp + 0x14]
mov ecx, edi
sub ecx, esi
cmp eax, ecx
jle 0x4a60a1
lea edi, [esi + ebp]
lea esp, [esp]
mov dl, byte [eax + esi]
mov byte [edi + eax], dl
sub eax, 1
cmp eax, ecx
jg 0x4a6090
mov edi, dword [esp + 0x10]
test ebp, ebp
jge 0x4a60bc
lea eax, [edi + 0xe]
lea edx, [edi + ebp + 0xe]
sub edx, eax
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x4a60b0
mov eax, dword [0x606e54]
push ebx
push eax
push edi
call fcn.00513780
mov ecx, dword [0x606e54]
push ecx
call sym.convertifd.exe_IpFree
add esp, 0x10
mov dword [0x606e54], 0
push str.DEFAULT_TASK
push esi
call fcn.005173a0
add esp, 8
test eax, eax
je 0x4a6192
cmp dword [0x606e58], 1
jne 0x4a6123
mov ecx, dword [0x606e50]
lea edi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4a6110
sub ecx, edi
mov ebx, ecx
mov dword [esp + 0x10], ecx
jmp 0x4a6129
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea ebp, [ebx - 0xc]
test ebp, ebp
jle 0x4a6153
mov ecx, dword [esp + 0x14]
mov edx, eax
sub edx, esi
cmp ecx, edx
jle 0x4a6151
lea edi, [esi + ebp]
nop
mov bl, byte [ecx + esi]
mov byte [edi + ecx], bl
sub ecx, 1
cmp ecx, edx
jg 0x4a6140
mov ebx, dword [esp + 0x10]
test ebp, ebp
jge 0x4a616c
lea ecx, [eax + 0xc]
lea edi, [eax + ebp + 0xc]
sub edi, ecx
mov edi, edi
mov dl, byte [ecx]
mov byte [edi + ecx], dl
add ecx, 1
test dl, dl
jne 0x4a6160
mov edx, dword [0x606e50]
push ebx
push edx
push eax
call fcn.00513780
mov eax, dword [0x606e50]
push eax
call sym.convertifd.exe_IpFree
add esp, 0x10
mov dword [0x606e50], 0
push str.DEFAULT_WORKFLOW
push esi
call fcn.005173a0
add esp, 8
test eax, eax
je 0x4a6243
cmp dword [0x606e58], 1
jne 0x4a61d3
mov ecx, dword [0x606e4c]
lea edi, [ecx + 1]
lea ebx, [ebx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4a61c0
sub ecx, edi
mov ebx, ecx
mov dword [esp + 0x10], ecx
jmp 0x4a61d9
xor ebx, ebx
mov dword [esp + 0x10], ebx
lea ebp, [ebx - 0x10]
test ebp, ebp
jle 0x4a6203
mov ecx, dword [esp + 0x14]
mov edx, eax
sub edx, esi
cmp ecx, edx
jle 0x4a6201
lea edi, [esi + ebp]
nop
mov bl, byte [ecx + esi]
mov byte [edi + ecx], bl
sub ecx, 1
cmp ecx, edx
jg 0x4a61f0
mov ebx, dword [esp + 0x10]
test ebp, ebp
jge 0x4a621c
lea ecx, [eax + 0x10]
lea edi, [eax + ebp + 0x10]
sub edi, ecx
mov edi, edi
mov dl, byte [ecx]
mov byte [edi + ecx], dl
add ecx, 1
test dl, dl
jne 0x4a6210
mov ecx, dword [0x606e4c]
push ebx
push ecx
push eax
call fcn.00513780
mov edx, dword [0x606e4c]
push edx
call sym.convertifd.exe_IpFree
add esp, 0x10
mov dword [0x606e4c], 0
call sym.convertifd.exe_ClearPickList
push esi
call fcn.004a5ce0
push 0
push 0
push 0
push esi
call sym.convertifd.exe_LoadFIFFromMemory
push esi
call sym.convertifd.exe_IpFree
add esp, 0x18
mov eax, 1
jmp 0x4a605b
lea eax, [esp + 0x10]
push eax
push 0xffffdcb6
call sym.convertifd.exe_IpCMessage
push edi
call fcn.005158c7
push esi
call sym.convertifd.exe_IpFree
add esp, 0x10
mov ecx, dword [esp + 0x210]
pop esi
pop edi
xor ecx, esp
xor eax, eax
call fcn.00511a80
add esp, 0x20c
ret