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

Disassembly:
push 0xffffffffffffffff
push 0x4ec0a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a8
mov eax, dword [esp + 0x2d4]
push ebx
push ebp
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x50], eax
jl 0x49315c
dec eax
mov dword [esp + 0x2e4], eax
mov ecx, dword [esp + 0x2d8]
mov edx, ecx
and edx, 2
mov dword [esp + 0x4c], edx
mov edx, ecx
and edx, 0x20
mov eax, ecx
mov esi, ecx
mov dword [esp + 0x20], edx
mov edx, ecx
and cl, 0x40
and eax, 1
and esi, 0x10
and edx, 0x100
neg cl
sbb cl, cl
and cl, 0xfe
inc cl
cmp esi, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x54], edx
mov byte [esp + 0x1b], cl
mov dword [esp + 0x64], eax
je 0x4931b7
mov dword [esp + 0x64], 1
mov ebp, dword [esp + 0x2cc]
push 0x5c
push ebx
push ebp
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
mov esi, eax
sub esi, ebp
add esi, 2
sar esi, 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x48], eax
mov dword [esp + 0x40], esi
call fcn.00449780
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x6c]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x2c0], ebx
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x14]
push ebp
push ecx
mov byte [esp + 0x2cc], 1
call fcn.004b0bc0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x493410
lea esp, [esp]
mov eax, dword [esp + 0x68]
and eax, 0x10
mov dword [esp + 0x58], eax
je 0x493271
cmp word [esp + 0x94], 0x2e
jne 0x493271
mov ax, word [esp + 0x96]
cmp ax, bx
je 0x4933ce
cmp ax, 0x2e
jne 0x49326d
cmp word [esp + 0x98], bx
je 0x4933ce
mov esi, dword [esp + 0x40]
cmp esi, ebx
jge 0x493285
mov edx, dword [esp + 0x2cc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esi + esi + 4]
push ebx
call fcn.00449190
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x49329d
mov word [ebp + esi*2 + 2], bx
lea eax, [esi + esi]
mov esi, dword [esp + 0x2cc]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [eax + ebp], bx
xor edi, edi
cmp ebp, ebx
mov byte [esp + 0x2c0], 2
je 0x4932d4
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [esp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
inc esi
lea eax, [esi + edi]
shl eax, 1
push ebp
call fcn.00449190
lea ecx, [esi + esi]
mov ebp, eax
push ecx
lea edx, [esp + 0x9c]
push edx
lea eax, [ebp + edi*2]
push eax
mov dword [esp + 0x70], ebp
call fcn.004b3b10
add esp, 0x10
cmp word [esp + 0x94], bx
je 0x4933e9
mov esi, dword [esp + 0x58]
cmp esi, ebx
je 0x493330
cmp dword [esp + 0x64], ebx
jne 0x493336
jmp 0x4933b1
cmp dword [esp + 0x4c], ebx
je 0x4933b1
push 8
call fcn.004cc845
add esp, 4
cmp eax, ebx
je 0x493351
push esi
push ebp
mov ecx, eax
call fcn.00470db0
mov esi, eax
jmp 0x493353
xor esi, esi
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
lea ecx, [eax - 1]
cmp edx, ecx
jl 0x49337b
mov edx, dword [esp + 0x34]
inc eax
mov dword [esp + 0x38], eax
shl eax, 2
push edx
call fcn.00449190
add esp, 4
mov dword [esp + 0x34], eax
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
mov dword [eax + ecx*4], esi
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
inc ecx
cmp eax, ebx
mov dword [esp + 0x3c], ecx
jne 0x4933b1
mov edx, dword [esp + 0x2e0]
mov eax, dword [edx]
cmp eax, ebx
jle 0x4933b1
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jge 0x4933fb
cmp ebp, ebx
mov byte [esp + 0x2c0], 1
je 0x4933ce
mov eax, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x14]
call fcn.00417ee4
test eax, eax
je 0x493410
mov esi, dword [esp + 0x40]
jmp 0x493230
cmp ebp, ebx
je 0x493410
mov edx, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push ebx
push edx
jmp 0x49340a
cmp ebp, ebx
je 0x493410
mov eax, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esp + 0x20], ebx
mov eax, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], esi
je 0x493436
movsx ecx, byte [esp + 0x1b]
push ecx
push esi
push eax
call fcn.0044df90
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x14], ebx
jle 0x49356a
mov ebx, dword [esp + 0x44]
jmp 0x493450
cmp word [ebx + 0x84], 0
jne 0x4935b6
mov edx, dword [esp + 0x2e0]
cmp dword [edx], 0
je 0x4935b6
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + ecx*4]
mov esi, dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
push edi
call fcn.00449130
mov ecx, edi
mov edx, ecx
mov ebp, eax
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
add esp, 4
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x60], ebp
mov eax, dword [esp + 0x2c8]
push ebp
push eax
mov ecx, ebx
mov byte [esp + 0x2c8], 3
call fcn.00448be0
test ebp, ebp
mov byte [esp + 0x2c0], 1
je 0x4934de
mov ecx, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
inc ecx
test eax, eax
mov dword [esp + 0x1c], ecx
je 0x49351a
mov ecx, dword [esp + 0x2d0]
mov edx, dword [esp + 0x2d4]
push 0x4efd50
push 0
lea eax, [esp + 0x64]
push eax
add edx, 2
push ecx
mov ecx, ebx
mov dword [esp + 0x6c], edx
call fcn.00489080
jmp 0x493541
mov eax, dword [esp + 0x2dc]
cmp word [eax], 0
je 0x493541
mov edx, dword [esp + 0x2e8]
mov ecx, dword [esp + 0x2d0]
push edx
push 0
push ecx
push eax
mov ecx, ebx
call fcn.00437b3d
mov ecx, dword [esp + 0x2e0]
mov eax, dword [ecx]
test eax, eax
jle 0x493553
dec eax
mov dword [ecx], eax
je 0x493591
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x493450
xor ebx, ebx
cmp dword [esp + 0x30], ebx
mov eax, dword [esp + 0x10]
jne 0x4935ed
cmp eax, ebx
je 0x493584
cmp eax, 0xffffffff
je 0x493584
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x34]
jmp 0x493a1c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4935a5
cmp eax, 0xffffffff
je 0x4935a5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x34]
jmp 0x493a1c
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4935ca
cmp eax, 0xffffffff
je 0x4935ca
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], 0
mov dword [esp + 0x2c0], 0xffffffff
call fcn.004674e0
xor eax, eax
jmp 0x493a30
cmp eax, ebx
je 0x4935fd
cmp eax, 0xffffffff
je 0x4935fd
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c0], 0xffffffff
call fcn.004674e0
push 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], ebx
call fcn.00449130
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
add esp, 4
xor eax, eax
cmp ecx, ebx
jle 0x493650
lea ecx, [ecx]
mov edx, dword [esp + 0x24]
mov dword [edx + eax*4], 0
inc eax
cmp eax, ecx
jl 0x493640
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2cc]
push eax
push ecx
xor edi, edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c8], 4
mov dword [esp + 0x18], edi
call fcn.00449600
mov ebp, dword [esp + 0x10]
cmp ebp, edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x49368a
push ebp
call ebx
mov edi, eax
push 0x4fb3b0
call ebx
mov esi, eax
inc esi
lea eax, [esi + edi]
shl eax, 1
push ebp
call fcn.00449190
lea edx, [esi + esi]
mov ebp, eax
push edx
lea eax, [ebp + edi*2]
push 0x4fb3b0
push eax
mov dword [esp + 0x20], ebp
call fcn.004b3b10
xor esi, esi
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x7c]
mov dword [esp + 0x78], esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], esi
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x28]
push ebp
push edx
mov byte [esp + 0x2dc], 6
call fcn.004b0bc0
mov eax, dword [esp + 0x30]
add esp, 0x1c
cmp eax, esi
je 0x493880
jmp 0x493700
mov eax, dword [esp + 0x68]
and eax, 0x10
mov dword [esp + 0x30], eax
je 0x493856
cmp word [esp + 0x94], 0x2e
jne 0x493742
mov ax, word [esp + 0x96]
test ax, ax
je 0x493856
cmp ax, 0x2e
jne 0x493742
cmp word [esp + 0x98], 0
je 0x493856
mov esi, dword [esp + 0x40]
test esi, esi
jge 0x493756
mov eax, dword [esp + 0x2cc]
push eax
call ebx
mov esi, eax
lea eax, [esi + esi + 4]
push 0
call fcn.00449190
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x493771
mov word [ebp + esi*2 + 2], 0
lea eax, [esi + esi]
mov esi, dword [esp + 0x2cc]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [eax + ebp], 0
xor edi, edi
test ebp, ebp
mov byte [esp + 0x2c0], 7
je 0x4937a6
push ebp
call ebx
mov edi, eax
lea eax, [esp + 0x94]
push eax
call ebx
mov esi, eax
inc esi
lea eax, [esi + edi]
shl eax, 1
push ebp
call fcn.00449190
lea ecx, [esi + esi]
mov ebp, eax
push ecx
lea edx, [esp + 0x9c]
push edx
lea eax, [ebp + edi*2]
push eax
mov dword [esp + 0x70], ebp
call fcn.004b3b10
push 8
call fcn.004cc845
add esp, 0x14
test eax, eax
je 0x4937f9
mov ecx, dword [esp + 0x30]
push ecx
push ebp
mov ecx, eax
call fcn.00470db0
mov esi, eax
jmp 0x4937fb
xor esi, esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea edx, [eax - 1]
cmp ecx, edx
jl 0x493823
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x28], eax
shl eax, 2
push ecx
call fcn.00449190
add esp, 4
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov dword [edx + eax*4], esi
mov ecx, dword [esp + 0x2c]
inc ecx
test ebp, ebp
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x2c0], 6
je 0x493856
mov ecx, dword [0x51d3c8]
add ebp, 0xfffffff8
push ebp
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x18]
call fcn.00417ee4
test eax, eax
jne 0x493700
mov eax, dword [esp + 0x14]
test eax, eax
je 0x493880
cmp eax, 0xffffffff
je 0x493880
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x49389f
add eax, 0xfffffff8
push eax
mov eax, dword [0x51d3c8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x20], edi
mov eax, dword [esp + 0x24]
mov esi, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x54], esi
je 0x4938c7
movsx edx, byte [esp + 0x1b]
push edx
push ecx
push eax
call fcn.0044df90
add esp, 0xc
cmp dword [esp + 0x50], edi
je 0x493a18
cmp esi, edi
mov dword [esp + 0x20], edi
jle 0x493a18
mov ebx, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x30]
mov eax, dword [eax + ecx*4]
mov esi, dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
push edi
call fcn.00449130
mov ecx, edi
mov edx, ecx
mov ebp, eax
shr ecx, 2
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, ebp
add esp, 4
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x48]
test eax, eax
mov byte [esp + 0x2c0], 8
je 0x493973
xor ebx, ebx
test ebp, ebp
je 0x49393b
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, dword [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
inc edi
lea eax, [edi + ebx]
shl eax, 1
push ebp
call fcn.00449190
mov edx, dword [esp + 0x4c]
lea ecx, [edi + edi]
mov esi, eax
push ecx
push edx
lea eax, [esi + ebx*2]
push eax
mov dword [esp + 0x60], esi
call fcn.004b3b10
mov ebx, dword [esp + 0x54]
add esp, 0x10
mov ecx, dword [esp + 0x2e8]
mov edx, dword [esp + 0x2e4]
mov edi, dword [esp + 0x2e0]
mov eax, dword [esp + 0x2dc]
push ecx
mov ecx, dword [esp + 0x2dc]
push edx
mov edx, dword [esp + 0x2dc]
push edi
push eax
mov eax, dword [esp + 0x2e0]
push ecx
mov ecx, dword [esp + 0x2dc]
push edx
push eax
push esi
push ecx
mov ecx, ebx
call fcn.00493120
mov ecx, dword [esp + 0x1c]
add ecx, eax
cmp word [ebx + 0x84], 0
mov dword [esp + 0x1c], ecx
jne 0x493a02
cmp dword [edi], 0
je 0x493a02
test esi, esi
je 0x4939eb
mov edx, dword [0x51d3c8]
add esi, 0xfffffff8
push esi
push 0
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x54]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x4938e1
jmp 0x493a18
test esi, esi
je 0x493a18
mov eax, dword [0x51d3c8]
add esi, 0xfffffff8
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.004674e0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2b8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2b4
ret 0x24