Function at 0x1022a46
Capabilities:
Link many functions at runtime

Disassembly:
push 0x488
push 0x1002dd8
call fcn.01032098
mov eax, dword [0x103ff58]
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x46c], 0x18
mov edi, fcn.010228fa
mov dword [ebp - 0x468], edi
mov esi, 0x1021f7c
mov dword [ebp - 0x464], esi
mov edx, 0x1022092
mov dword [ebp - 0x460], edx
mov ecx, 0x1022198
mov dword [ebp - 0x45c], ecx
mov eax, 0x1022346
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x48c], 0x20
mov dword [ebp - 0x488], edi
mov dword [ebp - 0x484], esi
mov dword [ebp - 0x480], edx
mov dword [ebp - 0x47c], ecx
mov dword [ebp - 0x478], eax
mov dword [ebp - 0x474], fcn.010226f3
mov dword [ebp - 0x470], fcn.01021f1c
and dword [ebp - 0x42c], 0
mov eax, dword [ebp - 0x42c]
cmp eax, dword [ebx + 0x30]
jae 0x1023269
and word [ebp - 0x41c], 0
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x41a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and word [ebp - 0x21c], 0
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x21a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x668
call fcn.01035a36
mov esi, eax
mov dword [ebp - 0x434], esi
test esi, esi
je 0x1023152
mov ecx, 0x19a
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
lea eax, [esi + 0x660]
mov dword [esi + 0x664], eax
mov dword [eax], eax
mov edi, dword [ebp - 0x42c]
lea edi, [edi + edi*4]
shl edi, 2
mov eax, dword [ebx + 0x2c]
mov eax, dword [edi + eax]
test eax, eax
jne 0x1022b75
mov eax, 0x1001818
push 0x104
push eax
lea eax, [esi + 0x28]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
and word [esi + 0x22e], 0
mov eax, dword [ebx + 0x2c]
mov eax, dword [edi + eax + 4]
test eax, eax
jne 0x1022ba0
mov eax, 0x1001818
lea ecx, [esi + 0x230]
push 0x104
push eax
push ecx
call dword [sym.imp.msvcrt.dll_wcsncpy]
add esp, 0xc
and word [esi + 0x436], 0
mov eax, dword [ebx + 0x2c]
mov eax, dword [edi + eax + 8]
test eax, eax
jne 0x1022bce
mov eax, 0x1001818
push 0x104
push eax
lea eax, [esi + 0x438]
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy]
xor eax, eax
mov word [esi + 0x63e], ax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x41c]
push ecx
push eax
push eax
lea eax, [esi + 0x230]
push eax
call dword [sym.imp.msvcrt.dll__wsplitpath]
push 0x1002dc0
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 0x28
test eax, eax
jne 0x1022c42
push 0x10017fc
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1022c42
mov dword [esi + 0x644], 1
and dword [ebp - 4], 0
mov eax, dword [ebx + 0x2c]
push dword [edi + eax + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x424], eax
test eax, eax
jne 0x1022c7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x498], eax
mov dword [esi + 0xc], 4
mov dword [esi + 0x10], eax
or dword [ebp - 4], 0xffffffff
jmp 0x1023152
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x424]
mov dword [esi + 8], eax
lea eax, [esi + 0x14]
mov dword [eax], 0x14
push eax
mov eax, dword [ebx + 0x2c]
push dword [edi + eax + 4]
call fcn.01028d8f
push 0x1002dac
push dword [ebp - 0x424]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [esi + 0x648], eax
push 0x1002d94
push dword [ebp - 0x424]
call edi
mov dword [esi + 0x64c], eax
push 0x1002d7c
push dword [ebp - 0x424]
call edi
mov dword [esi + 0x650], eax
push 0x1002d64
push dword [ebp - 0x424]
call edi
mov dword [esi + 0x654], eax
push 0x1002d40
push dword [ebp - 0x424]
call edi
mov dword [esi + 0x658], eax
cmp dword [esi + 0x648], 0
je 0x102310c
xor edi, edi
cmp dword [esi + 0x64c], edi
je 0x102310c
cmp dword [esi + 0x650], edi
je 0x102310c
cmp eax, edi
je 0x102310c
cmp dword [esi + 0x654], edi
je 0x102310c
push 0x10016a4
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x65c], eax
cmp dword [esi + 0x644], edi
je 0x1022d66
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jmp 0x1022d77
push 0x200000
push 0x19000
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esi + 0x640], eax
cmp eax, edi
jne 0x1022d93
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], 1
jmp 0x1022e80
mov eax, dword [esi + 0x65c]
cmp eax, edi
je 0x1022e09
mov dword [ebp - 4], 1
push 0x100b26d
push 0x102cdd1
push 0x102d41a
push 0x102d213
push 0x102c2ad
call eax
mov dword [ebp - 0x494], eax
or dword [ebp - 4], 0xffffffff
jmp 0x1022e03
xor edi, edi
cmp eax, edi
jl 0x1022e79
mov dword [ebp - 4], 2
cmp dword [esi + 0x644], edi
lea eax, [ebp - 0x48c]
jne 0x1022e24
lea eax, [ebp - 0x46c]
push eax
push dword [esi + 0x640]
call dword [esi + 0x648]
mov dword [ebp - 0x450], eax
or dword [ebp - 4], 0xffffffff
jmp 0x1022e6f
test eax, eax
jne 0x1022e88
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], eax
jmp 0x1023152
xor ecx, ecx
mov dword [ebp - 0x43c], ecx
mov edi, dword [ebp - 0x42c]
lea edi, [edi + edi*4]
shl edi, 2
mov dword [ebp - 0x430], edi
mov eax, dword [ebx + 0x2c]
add eax, edi
cmp dword [eax + 0xc], ecx
jbe 0x102305e
mov dword [ebp - 0x428], ecx
and dword [ebp - 0x444], 0
push 0x1002cf0
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x428]
push dword [eax + ecx + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x1022ee9
call fcn.01036a72
cmp eax, 1
je 0x102303b
push 0x38
call fcn.01035a36
mov ebx, eax
test ebx, ebx
je 0x1023071
push 0xe
pop ecx
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov dword [ebx + 0x34], esi
mov eax, dword [ebp - 0x420]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0x430]
mov edi, dword [edx + ecx + 0x10]
mov ecx, dword [ebp - 0x428]
mov edi, dword [edi + ecx + 0x10]
mov dword [ebx + 0x20], edi
mov edi, dword [eax + 0x2c]
mov edi, dword [edx + edi + 0x10]
cmp dword [ecx + edi], 0
je 0x1022f3f
mov eax, dword [eax + 0x2c]
mov eax, dword [edx + eax + 0x10]
mov ecx, dword [ecx + eax]
jmp 0x1022f44
mov ecx, 0x1001818
push ecx
call fcn.01035adb
mov dword [ebx + 0x28], eax
test eax, eax
je 0x102308f
mov edi, dword [ebp - 0x420]
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x430]
mov eax, dword [ecx + eax + 0x10]
mov ecx, dword [ebp - 0x428]
mov eax, dword [eax + ecx + 4]
test eax, eax
jne 0x1022f7b
mov eax, 0x1001818
push eax
call fcn.01035adb
mov dword [ebx + 0x24], eax
test eax, eax
je 0x102308f
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x430]
mov eax, dword [ecx + eax + 0x10]
mov ecx, dword [ebp - 0x428]
mov eax, dword [eax + ecx + 0xc]
test eax, eax
jne 0x1022fac
mov eax, 0x1001818
push eax
call fcn.01035adb
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x102308f
lea eax, [ebx + 0x10]
push eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x430]
mov eax, dword [ecx + eax + 0x10]
mov ecx, dword [ebp - 0x428]
push dword [eax + ecx + 8]
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
jne 0x1023086
push dword [ebx + 0x24]
call fcn.01035b7f
mov edi, eax
mov dword [ebp - 0x444], edi
test edi, edi
je 0x102308f
push edi
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x30], eax
test eax, eax
je 0x102309e
push edi
call fcn.01035abf
lea eax, [esi + 0x660]
mov ecx, dword [eax + 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov dword [ecx], ebx
mov dword [eax + 4], ebx
mov ebx, dword [ebp - 0x420]
mov edi, dword [ebp - 0x430]
inc dword [ebp - 0x43c]
add dword [ebp - 0x428], 0x14
mov eax, dword [ebx + 0x2c]
add eax, edi
mov ecx, dword [ebp - 0x43c]
cmp ecx, dword [eax + 0xc]
jb 0x1022eb6
xor ecx, ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ecx
lea ecx, [esi + 0x660]
mov eax, dword [ecx]
jmp 0x1023103
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], eax
jmp 0x102314c
mov dword [esi + 0xc], 2
jmp 0x10230ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], 1
jmp 0x10230ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], 5
mov dword [esi + 0x10], eax
push dword [ebx + 0x28]
call fcn.01035abf
push dword [ebx + 0x24]
call fcn.01035abf
push dword [ebx + 0x2c]
call fcn.01035abf
push ebx
call fcn.01035abf
push dword [ebp - 0x444]
call fcn.01035abf
jmp 0x102314c
mov edx, eax
mov eax, dword [eax]
mov edi, dword [0x1040330]
lea ecx, [edx + 8]
mov dword [ecx], 0x104032c
mov dword [edx + 0xc], edi
mov dword [edi], ecx
mov dword [0x1040330], ecx
inc dword [0x1040328]
lea ecx, [esi + 0x660]
cmp eax, ecx
jne 0x10230d9
jmp 0x1023244
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], 5
jmp 0x1022e80
mov ebx, dword [ebp - 0x420]
mov eax, dword [ebp - 0x42c]
lea eax, [eax + eax*4]
mov ecx, dword [ebx + 0x2c]
lea eax, [ecx + eax*4]
push dword [eax + 4]
push dword [eax]
push 0xc0007d24
push 2
push 1
push 1
call sub.FXSEVENT.dll_FaxLog
add esp, 0x18
test esi, esi
je 0x102325e
mov eax, dword [esi + 8]
test eax, eax
je 0x10231c4
mov dword [ebp - 4], 3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
jmp 0x10231c0
and dword [esi + 8], 0
lea edi, [esi + 0x640]
mov eax, dword [edi]
test eax, eax
je 0x10231e3
cmp dword [esi + 0x644], 0
jne 0x10231e3
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
and dword [edi], 0
lea edi, [esi + 0x660]
mov eax, dword [edi]
cmp eax, edi
je 0x102323c
jmp 0x10231f7
mov eax, dword [ebp - 0x440]
mov dword [ebp - 0x438], eax
mov ecx, dword [eax]
mov dword [ebp - 0x440], ecx
push dword [eax + 0x28]
call fcn.01035abf
mov eax, dword [ebp - 0x438]
push dword [eax + 0x24]
call fcn.01035abf
mov eax, dword [ebp - 0x438]
push dword [eax + 0x2c]
call fcn.01035abf
push dword [ebp - 0x438]
call fcn.01035abf
cmp dword [ebp - 0x440], edi
jne 0x10231f1
mov dword [esi + 0x664], edi
mov dword [edi], edi
test esi, esi
je 0x102325e
mov eax, dword [0x1040338]
mov dword [esi], 0x1040334
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [0x1040338], esi
inc dword [ebp - 0x42c]
jmp 0x1022aea
call fcn.0102241b
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x1c]
call fcn.01031d91
call fcn.010320d3
ret 4