Function at 0x1004999e
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10097e42
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100ae210]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x100ae210]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
push 0x1000c9dc
lea eax, [esp + 0x4c]
push eax
mov esi, ecx
mov dword [esp + 0x44], edi
call fcn.100580f9
and dword [esp + 0x80], 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [esi + 0x18]
add eax, 0x18
call fcn.10036d17
mov byte [esp + 0x80], 1
mov eax, dword [eax]
sub eax, 0x10
call fcn.100791e7
add eax, 0x10
mov dword [esp + 0x24], eax
mov byte [esp + 0x80], 3
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0xd4]
push ecx
sub eax, 0x10
mov dword [esp + 0x44], esp
mov ebx, esp
call fcn.100791e7
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [esi + 0xc]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 8]
push 0x1000d964
lea eax, [esp + 0x1c]
push eax
lea edi, [esp + 0x2c]
call fcn.10058a90
mov byte [esp + 0x80], 4
mov eax, dword [eax]
mov edi, dword [esi + 0x14]
lea ecx, [esp + 0x48]
push ecx
push eax
push 0x1000ca38
lea eax, [esp + 0x60]
push eax
call fcn.1002397d
mov byte [esp + 0x80], 6
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [esi]
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call dword [eax + 0x10]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 0x18]
add eax, 0x18
call fcn.10036d38
mov dword [esp + 0x14], eax
mov byte [esp + 0x80], 7
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 0xf4]
test ecx, ecx
jne 0x10049ade
push 6
jmp 0x10049b02
xor edi, edi
inc edi
cmp ecx, edi
jne 0x10049ae9
push 3
jmp 0x10049b02
cmp ecx, 3
jne 0x10049af2
push 0xb
jmp 0x10049b02
cmp ecx, 5
je 0x10049b03
cmp ecx, 4
jne 0x10049fd8
push 2
pop edi
mov eax, dword [esi + 0xc]
cmp eax, 2
jne 0x10049b10
xor eax, eax
inc eax
jmp 0x10049b16
push eax
call fcn.100498cf
mov ebx, dword [esi + 0x10]
push edi
push eax
push 3
push dword [esp + 0x20]
call fcn.1006b172
mov byte [esp + 0x80], 6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.1007924a
push dword [esp + 0x3c]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x2c], eax
lea eax, [edi + 1]
mov dword [esi + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push dword [0x100b8508]
call fcn.10027f7b
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x84], 8
mov eax, dword [esi + 0x18]
add eax, 0x18
call fcn.10036d38
mov byte [esp + 0x80], 9
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
cmp ecx, ebx
jle 0x10049b9c
and ecx, 0xffff
or ecx, 0x80070000
push edi
push dword [esp + 0x18]
push ecx
push ebx
push ebx
push eax
push dword [esi + 0x10]
call fcn.1005acc1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.1007924a
mov byte [esp + 0x80], 6
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [esi]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, esi
call dword [eax + 0x14]
mov dword [esp + 0x20], eax
mov eax, dword [0x100aee70]
mov edi, 0x100aee70
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
lea eax, [esp + 0x18]
mov byte [esp + 0x80], 0xb
push eax
mov eax, dword [esi + 0x18]
call fcn.1003929a
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
mov eax, dword [esp + 0x18]
sete byte [esp + 0x2b]
add eax, 0xfffffff0
call fcn.1007924a
cmp byte [esp + 0x2b], 0
je 0x10049ca9
mov eax, dword [0x100aee70]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x84], 0xc
mov eax, dword [esi + 0x18]
add eax, 0x18
call fcn.10036d17
mov byte [esp + 0x80], 0xd
push dword [eax]
lea eax, [esp + 0x1c]
push 0x1000d9a0
push eax
call fcn.10078ea6
mov byte [esp + 0x8c], 0xc
mov eax, dword [esp + 0x20]
add esp, 0xc
add eax, 0xfffffff0
call fcn.1007924a
mov ebx, dword [esp + 0x18]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
push ebx
push 4
call dword [eax + 4]
mov byte [esp + 0x80], 0xb
lea eax, [ebx - 0x10]
jmp 0x10049d55
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.1004aad2
cmp dword [esp + 0x34], ebx
jle 0x10049d5c
push 0x1000da08
lea eax, [esp + 0x1c]
push eax
call fcn.100580f9
mov byte [esp + 0x80], 0xe
push dword [esp + 0x18]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
push 4
call dword [eax + 4]
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x10049d05
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov ecx, dword [esi + 0x14]
cmp eax, ebx
jl 0x10049de8
cmp eax, dword [esp + 0x34]
jge 0x10049de8
mov edx, dword [esp + 0x30]
lea ebx, [edx + eax*4]
mov eax, dword [ebx]
mov edx, dword [ecx]
push eax
push 4
call dword [edx + 4]
mov ebx, dword [ebx]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
push ebx
push 6
call dword [eax + 4]
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x34]
jl 0x10049cff
mov byte [esp + 0x80], 0xb
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
call fcn.1007924a
xor ebx, ebx
mov eax, dword [esp + 0x2c]
sub eax, ebx
je 0x10049e1d
sub eax, 0x645
je 0x10049e0e
sub eax, 0x24
je 0x10049e03
sub eax, 6
je 0x10049e0e
sub eax, 0x553
je 0x10049df8
dec eax
je 0x10049ded
mov dword [esp + 0x14], ebx
mov byte [esp + 0x80], 0xf
push dword [esp + 0x20]
lea ecx, [esp + 0x18]
call fcn.100253aa
push dword [esp + 0x14]
lea eax, [esp + 0x20]
push dword [esp + 0x24]
push dword [esp + 0x2c]
push 0x1000dc30
push eax
call fcn.10078ea6
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
add esp, 0x14
push dword [esp + 0x1c]
push 7
call dword [eax + 4]
mov byte [esp + 0x80], 0xb
push dword [esp + 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x10049e41
call fcn.10077bf4
push dword [esp + 0x24]
push 0x1000db38
jmp 0x10049e26
push dword [esp + 0x24]
push 0x1000dae8
jmp 0x10049e26
push dword [esp + 0x24]
push 0x1000dbf0
jmp 0x10049e26
push dword [esp + 0x24]
mov dword [esp + 0x24], ebx
push 0x1000da30
jmp 0x10049e26
push dword [esp + 0x24]
push 0x1000dac0
lea eax, [esp + 0x24]
push eax
call fcn.10078ea6
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx]
add esp, 0xc
push dword [esp + 0x1c]
push 7
call dword [eax + 4]
mov eax, dword [0x100aee70]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x40], eax
mov byte [esp + 0x80], 0x10
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x34], ebx
jle 0x10049ecf
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
cmp eax, ebx
jl 0x10049de8
cmp eax, dword [esp + 0x34]
jge 0x10049de8
push dword [esi + 0x14]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x50]
push eax
call fcn.1004a85e
mov byte [esp + 0x80], 0x11
mov eax, dword [eax]
mov ecx, dword [esi + 0x14]
mov edx, dword [ecx]
push eax
push 7
call dword [edx + 4]
mov byte [esp + 0x80], 0x10
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
call fcn.1007924a
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add dword [esp + 0x18], 4
cmp eax, dword [esp + 0x34]
jl 0x10049e6c
cmp byte [esi + 4], 0
je 0x10049f00
mov eax, dword [esp + 0x20]
call fcn.100260a4
test al, al
je 0x10049f00
mov edi, dword [esi]
call fcn.100259ea
push eax
mov ecx, esi
call dword [edi + 0x20]
mov esi, dword [esp + 0x3c]
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
mov ecx, esi
jmp 0x10049f66
mov eax, dword [esp + 0x20]
call fcn.100260a4
test al, al
jne 0x10049f60
mov eax, dword [0x100aee70]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x80], 0x12
push dword [esp + 0x20]
lea eax, [esp + 0x1c]
push dword [esp + 0x30]
push 0x1000dc70
push eax
call fcn.10078ea6
mov esi, dword [esi + 0x14]
mov edi, dword [esp + 0x28]
mov eax, dword [esi]
add esp, 0x10
push edi
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x80], 0x10
call fcn.1007924a
mov ecx, dword [esp + 0x3c]
mov eax, dword [ecx]
push dword [esp + 0x20]
call dword [eax + 0xc]
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
call fcn.1007924a
lea esi, [esp + 0x30]
call fcn.100669e7
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
call fcn.1007924a
lea eax, [esp + 0x54]
push eax
mov byte [esp + 0x84], 3
call fcn.100239be
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
call fcn.1007924a
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
call fcn.1007924a
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.1007b431
mov esp, ebp
pop ebp
ret 4
push 0x1009c268
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], 0x80004001
call fcn.10081847
int3