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

Disassembly:
sub esp, 0x5d0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov eax, ecx
push ebp
xor ecx, ecx
mov dword [esp + 0x34], eax
mov ebp, ecx
mov dword [esp + 0x18], ebp
push esi
push edi
test eax, eax
je 0x417f1f
lea eax, [esp + 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
mov dword [esp + 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, eax
xor ecx, ecx
push 0x2c8
push ecx
lea eax, [esp + 0x320]
mov dword [esp + 0x3c], edi
push eax
call fcn.0041d850
add esp, 0xc
mov dword [esp + 0x314], 0x10007
lea eax, [esp + 0x314]
push eax
call dword [sym.imp.KERNEL32.dll_RtlCaptureContext]
xor eax, eax
push 0xa4
push eax
lea eax, [esp + 0x5c]
push eax
call fcn.0041d850
mov eax, dword [esp + 0x3d8]
add esp, 0xc
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x3c8]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x3d8]
push 3
pop ecx
mov dword [esp + 0x78], eax
xor eax, eax
push eax
push dword [sym.imp.dbghelp.dll_SymGetModuleBase]
mov dword [esp + 0x64], ecx
push dword [sym.imp.dbghelp.dll_SymFunctionTableAccess]
mov dword [esp + 0x80], ecx
push eax
lea eax, [esp + 0x324]
mov dword [esp + 0x90], ecx
push eax
lea eax, [esp + 0x68]
push eax
push edi
push esi
push 0x14c
call dword [sym.imp.dbghelp.dll_StackWalk]
test eax, eax
je 0x417ea1
push dword [esp + 0x54]
xor eax, eax
push esi
mov byte [esp + 0x100], al
mov ebp, eax
mov byte [esp + 0x204], al
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.dbghelp.dll_SymGetModuleBase]
test eax, eax
je 0x417c6f
push 0x104
lea ecx, [esp + 0xfc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
jmp 0x417c75
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x1fc]
mov dword [esp + 0x1fc], 0x117
push eax
xor eax, eax
mov dword [esp + 0x210], 0xfe
push eax
push dword [esp + 0x5c]
push esi
call dword [sym.imp.dbghelp.dll_SymGetSymFromAddr]
push 0
test eax, eax
mov dword [esp + 0x44], 0x14
pop eax
lea edi, [esp + 0x210]
mov dword [esp + 0x30], eax
cmove edi, eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x28], edi
push eax
push dword [esp + 0x5c]
push esi
call dword [sym.imp.dbghelp.dll_SymGetLineFromAddr]
test eax, eax
je 0x417ce9
mov ebp, dword [esp + 0x4c]
mov eax, dword [esp + 0x48]
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x28], eax
test edi, edi
je 0x417d10
test ebp, ebp
je 0x417cfb
mov dword [esp + 0x18], 1
jmp 0x417d09
test edi, edi
je 0x417d10
xor eax, eax
mov dword [esp + 0x18], eax
test ebp, ebp
je 0x417d10
mov eax, str._s_p_s_s__d_
jmp 0x417d1b
xor ecx, ecx
mov eax, str._s_p
mov dword [esp + 0x18], ecx
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [eax + 1]
lea eax, [esp + 0xf8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
test edi, edi
je 0x417d46
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
test ebp, ebp
je 0x417d53
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
push esi
xor eax, eax
push 8
mov edi, eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x417e64
lea eax, [esp + 0xf8]
cmp dword [esp + 0x18], edi
je 0x417d9b
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x34]
push dword [esp + 0x60]
push eax
push dword [esp + 0x30]
push esi
push ebp
call fcn.00417adc
add esp, 0x20
jmp 0x417dae
push dword [esp + 0x54]
push eax
push dword [esp + 0x24]
push esi
push ebp
call fcn.00417adc
add esp, 0x14
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [esp + 0x24], eax
lea eax, [eax*2 + 2]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x417e37
mov eax, dword [esp + 0x24]
inc eax
push eax
push esi
push 0xffffffffffffffff
push ebp
xor eax, eax
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x417e55
mov edi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 0xe]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x417e31
push edi
lea esi, [ebx + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebx + 8], esi
lea ecx, [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [esp + 0x14], ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebp
xor ebp, ebp
push ebp
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test edi, edi
je 0x417e66
push edi
push ebp
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x417e66
push esi
xor eax, eax
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x417e37
xor ebp, ebp
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x314]
push ebp
push dword [sym.imp.dbghelp.dll_SymGetModuleBase]
push dword [sym.imp.dbghelp.dll_SymFunctionTableAccess]
push ebp
push eax
lea eax, [esp + 0x68]
push eax
push dword [esp + 0x4c]
push esi
push 0x14c
call dword [sym.imp.dbghelp.dll_StackWalk]
test eax, eax
jne 0x417c30
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
xor edi, edi
inc edi
jmp 0x417eb8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, dword [esi]
inc eax
add edi, eax
lea eax, [esp + 0x10]
cmp esi, eax
jne 0x417eaa
lea eax, [edi + edi]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x417f1f
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
mov ebp, ebx
cmp edi, eax
je 0x417f10
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
add esi, esi
push esi
push dword [edi + 8]
push ebp
call fcn.0041baa0
mov edi, dword [edi]
lea eax, [esp + 0x1c]
add ebp, 2
add esp, 0xc
add ebp, esi
cmp edi, eax
jne 0x417ee3
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x3c]
xor ebp, ebp
inc ebp
mov dword [esp + 0x20], ebp
mov dword [eax], ebx
jmp 0x417f23
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
cmp edi, eax
je 0x417f59
xor ebp, ebp
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push edi
mov dword [esp + 0x14], eax
push ebp
mov dword [eax + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x10]
cmp edi, eax
jne 0x417f2d
mov ebp, dword [esp + 0x20]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x5d0
ret