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

Disassembly:
push 0xffffffffffffffff
push 0x4e7dc3
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 0x4932bc
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 0x493317
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.00446550
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.004abdd0
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x493570
lea esp, [esp]
mov eax, dword [esp + 0x68]
and eax, 0x10
mov dword [esp + 0x58], eax
je 0x4933d1
cmp word [esp + 0x94], 0x2e
jne 0x4933d1
mov ax, word [esp + 0x96]
cmp ax, bx
je 0x49352e
cmp ax, 0x2e
jne 0x4933cd
cmp word [esp + 0x98], bx
je 0x49352e
mov esi, dword [esp + 0x40]
cmp esi, ebx
jge 0x4933e5
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.00445f60
mov ebp, eax
add esp, 4
cmp ebp, ebx
je 0x4933fd
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 0x493434
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.00445f60
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.004aee50
add esp, 0x10
cmp word [esp + 0x94], bx
je 0x493549
mov esi, dword [esp + 0x58]
cmp esi, ebx
je 0x493490
cmp dword [esp + 0x64], ebx
jne 0x493496
jmp 0x493511
cmp dword [esp + 0x4c], ebx
je 0x493511
push 8
call fcn.004c86a5
add esp, 4
cmp eax, ebx
je 0x4934b1
push esi
push ebp
mov ecx, eax
call fcn.0046e770
mov esi, eax
jmp 0x4934b3
xor esi, esi
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
lea ecx, [eax - 1]
cmp edx, ecx
jl 0x4934db
mov edx, dword [esp + 0x34]
inc eax
mov dword [esp + 0x38], eax
shl eax, 2
push edx
call fcn.00445f60
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 0x493511
mov edx, dword [esp + 0x2e0]
mov eax, dword [edx]
cmp eax, ebx
jle 0x493511
mov ecx, dword [esp + 0x14]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jge 0x49355b
cmp ebp, ebx
mov byte [esp + 0x2c0], 1
je 0x49352e
mov eax, dword [0x51927c]
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.0041684b
test eax, eax
je 0x493570
mov esi, dword [esp + 0x40]
jmp 0x493390
cmp ebp, ebx
je 0x493570
mov edx, dword [0x51927c]
add ebp, 0xfffffff8
push ebp
push ebx
push edx
jmp 0x49356a
cmp ebp, ebx
je 0x493570
mov eax, dword [0x51927c]
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 0x493596
movsx ecx, byte [esp + 0x1b]
push ecx
push esi
push eax
call fcn.0044abb0
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x14], ebx
jle 0x4936c7
mov ebx, dword [esp + 0x44]
jmp 0x4935b0
cmp word [ebx + 0x7e], 0
jne 0x493713
mov edx, dword [esp + 0x2e0]
cmp dword [edx], 0
je 0x493713
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.00445f00
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.00444550
test ebp, ebp
mov byte [esp + 0x2c0], 1
je 0x49363b
mov ecx, dword [0x51927c]
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 0x493677
mov ecx, dword [esp + 0x2d0]
mov edx, dword [esp + 0x2d4]
push 0x4ebd38
push 0
lea eax, [esp + 0x64]
push eax
add edx, 2
push ecx
mov ecx, ebx
mov dword [esp + 0x6c], edx
call fcn.00487aa0
jmp 0x49369e
mov eax, dword [esp + 0x2dc]
cmp word [eax], 0
je 0x49369e
mov edx, dword [esp + 0x2e8]
mov ecx, dword [esp + 0x2d0]
push edx
push 0
push ecx
push eax
mov ecx, ebx
call fcn.00435957
mov ecx, dword [esp + 0x2e0]
mov eax, dword [ecx]
test eax, eax
jle 0x4936b0
dec eax
mov dword [ecx], eax
je 0x4936ee
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x58]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x4935b0
xor ebx, ebx
cmp dword [esp + 0x30], ebx
mov eax, dword [esp + 0x10]
jne 0x49374a
cmp eax, ebx
je 0x4936e1
cmp eax, 0xffffffff
je 0x4936e1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x10], ebx
lea ecx, [esp + 0x34]
jmp 0x493b79
mov eax, dword [esp + 0x10]
test eax, eax
je 0x493702
cmp eax, 0xffffffff
je 0x493702
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x10], 0
lea ecx, [esp + 0x34]
jmp 0x493b79
mov eax, dword [esp + 0x10]
test eax, eax
je 0x493727
cmp eax, 0xffffffff
je 0x493727
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.00465c90
xor eax, eax
jmp 0x493b8d
cmp eax, ebx
je 0x49375a
cmp eax, 0xffffffff
je 0x49375a
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.00465c90
push 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], ebx
call fcn.00445f00
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
add esp, 4
xor eax, eax
cmp ecx, ebx
jle 0x4937b0
lea ebx, [ebx]
mov edx, dword [esp + 0x24]
mov dword [edx + eax*4], 0
inc eax
cmp eax, ecx
jl 0x4937a0
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.004463d0
mov ebp, dword [esp + 0x10]
cmp ebp, edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x4937ea
push ebp
call ebx
mov edi, eax
push 0x4f7328
call ebx
mov esi, eax
inc esi
lea eax, [esi + edi]
shl eax, 1
push ebp
call fcn.00445f60
lea edx, [esi + esi]
mov ebp, eax
push edx
lea eax, [ebp + edi*2]
push 0x4f7328
push eax
mov dword [esp + 0x20], ebp
call fcn.004aee50
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.004abdd0
mov eax, dword [esp + 0x30]
add esp, 0x1c
cmp eax, esi
je 0x4939e0
jmp 0x493860
mov eax, dword [esp + 0x68]
and eax, 0x10
mov dword [esp + 0x30], eax
je 0x4939b6
cmp word [esp + 0x94], 0x2e
jne 0x4938a2
mov ax, word [esp + 0x96]
test ax, ax
je 0x4939b6
cmp ax, 0x2e
jne 0x4938a2
cmp word [esp + 0x98], 0
je 0x4939b6
mov esi, dword [esp + 0x40]
test esi, esi
jge 0x4938b6
mov eax, dword [esp + 0x2cc]
push eax
call ebx
mov esi, eax
lea eax, [esi + esi + 4]
push 0
call fcn.00445f60
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4938d1
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 0x493906
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.00445f60
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.004aee50
push 8
call fcn.004c86a5
add esp, 0x14
test eax, eax
je 0x493959
mov ecx, dword [esp + 0x30]
push ecx
push ebp
mov ecx, eax
call fcn.0046e770
mov esi, eax
jmp 0x49395b
xor esi, esi
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
lea edx, [eax - 1]
cmp ecx, edx
jl 0x493983
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x28], eax
shl eax, 2
push ecx
call fcn.00445f60
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 0x4939b6
mov ecx, dword [0x51927c]
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.0041684b
test eax, eax
jne 0x493860
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4939e0
cmp eax, 0xffffffff
je 0x4939e0
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 0x4939ff
add eax, 0xfffffff8
push eax
mov eax, dword [0x51927c]
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 0x493a27
movsx edx, byte [esp + 0x1b]
push edx
push ecx
push eax
call fcn.0044abb0
add esp, 0xc
cmp dword [esp + 0x50], edi
je 0x493b75
cmp esi, edi
mov dword [esp + 0x20], edi
jle 0x493b75
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.00445f00
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 0x493ad3
xor ebx, ebx
test ebp, ebp
je 0x493a9b
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.00445f60
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.004aee50
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.00493280
mov ecx, dword [esp + 0x1c]
add ecx, eax
cmp word [ebx + 0x7e], 0
mov dword [esp + 0x1c], ecx
jne 0x493b5f
cmp dword [edi], 0
je 0x493b5f
test esi, esi
je 0x493b48
mov edx, dword [0x51927c]
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 0x493a41
jmp 0x493b75
test esi, esi
je 0x493b75
mov eax, dword [0x51927c]
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.00465c90
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