Function at 0x1020417
Capabilities:
Link many functions at runtime

Disassembly:
push 0x47c
push 0x1002db0
call fcn.0102e874
mov dword [ebp - 0x30], 0x18
mov edi, fcn.010202f3
mov dword [ebp - 0x2c], edi
mov esi, 0x101fa12
mov dword [ebp - 0x28], esi
mov edx, 0x101fb20
mov dword [ebp - 0x24], edx
mov ecx, 0x101fc1d
mov dword [ebp - 0x20], ecx
mov eax, 0x101fda7
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x50], 0x20
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], fcn.01020121
mov dword [ebp - 0x34], fcn.0101f9bb
and dword [ebp - 0x54], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [eax + 0x30]
jae 0x1020b73
and word [ebp - 0x254], 0
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x252]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and word [ebp - 0x454], 0
push 0x7f
pop ecx
xor eax, eax
lea edi, [ebp - 0x452]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x668
call fcn.01031ae1
mov esi, eax
mov dword [ebp - 0x458], esi
test esi, esi
je 0x1020a77
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 - 0x54]
lea edi, [edi + edi*4]
shl edi, 2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [edi + eax]
test eax, eax
jne 0x1020508
mov eax, 0x1001848
push 0x104
push eax
lea eax, [esi + 0x28]
push eax
mov ebx, dword [sym.imp.msvcrt.dll_wcsncpy]
call ebx
add esp, 0xc
and word [esi + 0x22e], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [edi + eax + 4]
test eax, eax
jne 0x1020538
mov eax, 0x1001848
lea ecx, [esi + 0x230]
push 0x104
push eax
push ecx
call ebx
add esp, 0xc
and word [esi + 0x436], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov eax, dword [edi + eax + 8]
test eax, eax
jne 0x1020565
mov eax, 0x1001848
push 0x104
push eax
lea eax, [esi + 0x438]
push eax
call ebx
xor eax, eax
mov word [esi + 0x63e], ax
lea ecx, [ebp - 0x454]
push ecx
lea ecx, [ebp - 0x254]
push ecx
push eax
push eax
lea eax, [esi + 0x230]
push eax
call dword [sym.imp.msvcrt.dll__wsplitpath]
push 0x1002d98
lea eax, [ebp - 0x254]
push eax
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
call ebx
add esp, 0x28
test eax, eax
jne 0x10205d3
push 0x100182c
lea eax, [ebp - 0x454]
push eax
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x10205d3
mov dword [esi + 0x644], 1
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
push dword [edi + eax + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x45c], ebx
test ebx, ebx
jne 0x1020604
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x460], eax
jmp 0x1020a69
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], ebx
lea eax, [esi + 0x14]
mov dword [eax], 0x14
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
push dword [edi + eax + 4]
call fcn.01026186
push 0x1002d84
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov dword [esi + 0x648], eax
push 0x1002d6c
push ebx
call edi
mov dword [esi + 0x64c], eax
push 0x1002d54
push ebx
call edi
mov dword [esi + 0x650], eax
push 0x1002d3c
push ebx
call edi
mov dword [esi + 0x654], eax
push 0x1002d18
push ebx
call edi
mov dword [esi + 0x658], eax
cmp dword [esi + 0x648], 0
je 0x1020a37
xor edi, edi
cmp dword [esi + 0x64c], edi
je 0x1020a37
cmp dword [esi + 0x650], edi
je 0x1020a37
cmp eax, edi
je 0x1020a37
cmp dword [esi + 0x654], edi
je 0x1020a37
push 0x10016d4
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x65c], eax
cmp dword [esi + 0x644], edi
je 0x10206cd
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
jmp 0x10206de
push 0x200000
push 0x19000
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esi + 0x640], eax
cmp eax, edi
je 0x10209a2
mov eax, dword [esi + 0x65c]
cmp eax, edi
je 0x1020768
mov dword [ebp - 4], 1
push 0x1026357
push 0x1029d41
push 0x102a34c
push 0x102a155
push 0x10292db
call eax
mov dword [ebp - 0x464], eax
or dword [ebp - 4], 0xffffffff
jmp 0x1020756
xor edi, edi
cmp eax, edi
jge 0x1020768
mov dword [esi + 0xc], 6
jmp 0x10209af
mov dword [ebp - 4], 2
cmp dword [esi + 0x644], edi
lea eax, [ebp - 0x50]
jne 0x102077d
lea eax, [ebp - 0x30]
push eax
push dword [esi + 0x640]
call dword [esi + 0x648]
mov dword [ebp - 0x46c], eax
or dword [ebp - 4], 0xffffffff
jmp 0x10207c2
test eax, eax
jne 0x10207ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x102075c
xor ebx, ebx
mov dword [ebp - 0x474], ebx
mov edi, dword [ebp - 0x54]
lea edi, [edi + edi*4]
shl edi, 2
mov dword [ebp - 0x478], edi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
add eax, edi
cmp dword [eax + 0xc], ebx
jbe 0x102098f
mov dword [ebp - 0x47c], ebx
mov dword [ebp - 0x480], ebx
push 0x1002cc8
mov eax, dword [eax + 0x10]
mov ecx, dword [ebp - 0x47c]
push dword [eax + ecx + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x102082e
call fcn.01032977
cmp eax, 1
je 0x102096b
push 0x38
call fcn.01031ae1
mov ebx, eax
test ebx, ebx
je 0x10209a2
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 + 8]
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0x478]
mov edi, dword [edx + ecx + 0x10]
mov ecx, dword [ebp - 0x47c]
mov edi, dword [edi + ecx + 0x10]
mov dword [ebx + 0x20], edi
mov eax, dword [eax + 0x2c]
mov eax, dword [edx + eax + 0x10]
mov ecx, dword [ecx + eax]
test ecx, ecx
jne 0x102087b
mov ecx, 0x1001848
push ecx
call fcn.01031b6b
mov dword [ebx + 0x28], eax
test eax, eax
je 0x10209b7
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x478]
mov eax, dword [ecx + eax + 0x10]
mov ecx, dword [ebp - 0x47c]
mov eax, dword [eax + ecx + 4]
test eax, eax
jne 0x10208af
mov eax, 0x1001848
push eax
call fcn.01031b6b
mov dword [ebx + 0x24], eax
test eax, eax
je 0x10209b7
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x478]
mov eax, dword [ecx + eax + 0x10]
mov ecx, dword [ebp - 0x47c]
mov eax, dword [eax + ecx + 0xc]
test eax, eax
jne 0x10208e0
mov eax, 0x1001848
push eax
call fcn.01031b6b
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x10209b7
lea eax, [ebx + 0x10]
push eax
mov eax, dword [edi + 0x2c]
mov ecx, dword [ebp - 0x478]
mov eax, dword [ecx + eax + 0x10]
mov ecx, dword [ebp - 0x47c]
push dword [eax + ecx + 8]
call dword [sym.imp.ole32.dll_IIDFromString]
test eax, eax
jne 0x10209c6
push dword [ebx + 0x24]
call fcn.01031bfc
mov edi, eax
mov dword [ebp - 0x480], edi
test edi, edi
je 0x10209b7
push edi
push dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x30], eax
test eax, eax
je 0x10209cf
push edi
call fcn.01031b59
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 edi, dword [ebp - 0x478]
xor ebx, ebx
inc dword [ebp - 0x474]
add dword [ebp - 0x47c], 0x14
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
add eax, edi
mov ecx, dword [ebp - 0x474]
cmp ecx, dword [eax + 0xc]
jb 0x10207fc
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
lea ebx, [esi + 0x660]
mov eax, dword [ebx]
jmp 0x1020a2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], eax
jmp 0x1020a77
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], 1
jmp 0x10209dc
mov dword [esi + 0xc], 2
jmp 0x10209dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], 5
mov dword [esi + 0x10], eax
push dword [ebx + 0x28]
call fcn.01031b59
push dword [ebx + 0x24]
call fcn.01031b59
push dword [ebx + 0x2c]
call fcn.01031b59
push ebx
call fcn.01031b59
push dword [ebp - 0x480]
call fcn.01031b59
jmp 0x1020a77
mov edx, eax
mov eax, dword [eax]
mov edi, dword [0x103c2c0]
lea ecx, [edx + 8]
mov dword [ecx], 0x103c2bc
mov dword [edx + 0xc], edi
mov dword [edi], ecx
mov dword [0x103c2c0], ecx
inc dword [0x103c2b8]
cmp eax, ebx
jne 0x1020a0a
jmp 0x1020b51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xc], 5
jmp 0x10209af
mov dword [esi + 0xc], 4
mov dword [esi + 0x10], eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
lea eax, [eax + eax*4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 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 0x1020b6b
mov eax, dword [esi + 8]
test eax, eax
je 0x1020ae3
mov dword [ebp - 4], 3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
jmp 0x1020adf
and dword [esi + 8], 0
lea edi, [esi + 0x640]
mov eax, dword [edi]
test eax, eax
je 0x1020b02
cmp dword [esi + 0x644], 0
jne 0x1020b02
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
and dword [edi], 0
lea edi, [esi + 0x660]
mov ebx, dword [edi]
jmp 0x1020b45
mov eax, ebx
mov dword [ebp - 0x48c], eax
mov ebx, dword [ebx]
push dword [eax + 0x28]
call fcn.01031b59
mov eax, dword [ebp - 0x48c]
push dword [eax + 0x24]
call fcn.01031b59
mov eax, dword [ebp - 0x48c]
push dword [eax + 0x2c]
call fcn.01031b59
push dword [ebp - 0x48c]
call fcn.01031b59
cmp ebx, edi
jne 0x1020b0c
mov dword [esi + 0x664], edi
mov dword [edi], edi
test esi, esi
je 0x1020b6b
mov eax, dword [0x103c2c8]
mov dword [esi], 0x103c2c4
mov dword [esi + 4], eax
mov dword [eax], esi
mov dword [0x103c2c8], esi
inc dword [ebp - 0x54]
jmp 0x102047d
call fcn.0101fe75
xor eax, eax
inc eax
call fcn.0102e8ad
ret 4