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

Disassembly:
sub esp, 0xb98
mov eax, dword [0x1008e168]
xor eax, esp
mov dword [esp + 0xb94], eax
mov eax, dword [esp + 0xb9c]
push ebx
push ebp
mov ebp, dword [esp + 0xba8]
push esi
push edi
mov dword [esp + 0x28], eax
xor esi, esi
lea eax, [esp + 0x14]
mov dword [esp + 0x10], esi
push eax
push 0x20019
push esi
push 0x100046d0
push Ordinal_4
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x38], esi
call fcn.1000f4f0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10042540
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], 0x208
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x64]
push eax
push esi
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x5a8]
push eax
push dword [esp + 0x40]
call fcn.1000f5c0
test eax, eax
jne 0x10042540
xor edi, edi
mov dword [esp + 0x40], eax
cmp dword [esp + 0x48], eax
jbe 0x10042540
test edi, edi
jne 0x10042540
push 0x105
lea ecx, [esp + 0x16c]
push ecx
push eax
push dword [esp + 0x20]
call fcn.1000f250
mov edi, eax
test edi, edi
jne 0x1004252d
lea eax, [esp + 0x18]
push eax
push 0x20019
push edi
lea eax, [esp + 0x174]
push eax
push dword [esp + 0x24]
call fcn.1000f4f0
mov edi, eax
test edi, edi
jne 0x1004252d
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], 0x104
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x48]
push eax
push edi
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x5a8]
push eax
push dword [esp + 0x44]
call fcn.1000f5c0
mov edi, eax
test edi, edi
jne 0x10042522
xor ebx, ebx
cmp dword [esp + 0x2c], ebx
jbe 0x1004251c
nop
test edi, edi
jne 0x1004251c
push 0x209
lea eax, [esp + 0x16c]
push eax
push ebx
push dword [esp + 0x24]
call fcn.1000f250
mov edi, eax
test edi, edi
jne 0x10042511
lea eax, [esp + 0x24]
push eax
push 0xf003f
push edi
lea eax, [esp + 0x174]
push eax
push dword [esp + 0x28]
call fcn.1000f4f0
mov edi, eax
test edi, edi
jne 0x10042511
lea eax, [esp + 0x58]
mov dword [esp + 0x1c], 0x104
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 0x70]
push eax
push edi
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x5a8]
push eax
push dword [esp + 0x50]
call fcn.1000f5c0
mov edi, eax
test edi, edi
jne 0x10042502
cmp dword [esp + 0x54], eax
jne 0x10042502
xor esi, esi
cmp dword [esp + 0x20], esi
jbe 0x100424fe
push 0x102
lea eax, [esp + 0x68]
mov dword [esp + 0x54], 0x82
push 0
push eax
mov dword [esp + 0x58], 0x20a
call fcn.1007e500
push 0x20a
lea eax, [esp + 0x384]
push 0
push eax
call fcn.1007e500
add esp, 0x18
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x378]
push eax
lea eax, [esp + 0x68]
push eax
push 0
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x78]
push eax
push esi
push dword [esp + 0x40]
call fcn.1000f320
mov edi, eax
test edi, edi
jne 0x100424fe
lea eax, [esp + 0x64]
push 0x100043ec
push eax
call fcn.100100b0
add esp, 8
test eax, eax
jne 0x100424f3
lea eax, [esp + 0x374]
push eax
call fcn.100103d0
test eax, eax
jne 0x10042568
inc esi
cmp esi, dword [esp + 0x20]
jb 0x10042466
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10042511
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc ebx
cmp ebx, dword [esp + 0x2c]
jb 0x100423b0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1004252d
push eax
call ebx
mov eax, dword [esp + 0x40]
inc eax
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x48]
jb 0x10042303
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x1004254b
push ecx
call ebx
mov eax, esi
mov ecx, dword [esp + 0xba4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1007d8c1
add esp, 0xb98
ret 8
mov esi, dword [ebp]
cmp esi, 0x400
jae 0x100424fe
push 0x440
call fcn.1007d768
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword [ecx + esi*4], eax
mov eax, dword [ebp]
cmp dword [ecx + eax*4], 0
je 0x100424fe
push 0x208
lea eax, [esp + 0x790]
push eax
lea eax, [esp + 0x170]
push eax
call fcn.1000ff40
test eax, eax
je 0x10042670
push 0x208
lea eax, [esp + 0x99c]
push eax
lea eax, [esp + 0x37c]
push eax
call fcn.1000ff40
test eax, eax
je 0x10042670
mov eax, dword [ebp]
lea esi, [esp + 0x78c]
mov ecx, dword [esp + 0x28]
mov edx, 0x209
mov ecx, dword [ecx + eax*4]
sub esi, ecx
lea eax, [edx + 0x7ffffdf5]
test eax, eax
je 0x10042609
mov al, byte [esi + ecx]
test al, al
je 0x10042609
mov byte [ecx], al
inc ecx
dec edx
jne 0x100425f0
jmp 0x1004260d
test edx, edx
jne 0x1004260e
dec ecx
mov eax, dword [esp + 0x28]
lea esi, [esp + 0x998]
mov byte [ecx], 0
mov edx, 0x209
mov ecx, dword [ebp]
mov eax, dword [eax + ecx*4]
inc ecx
add eax, 0x209
mov dword [ebp], ecx
sub esi, eax
lea ecx, [edx + 0x7ffffdf5]
test ecx, ecx
je 0x1004265a
mov cl, byte [esi + eax]
test cl, cl
je 0x1004265a
mov byte [eax], cl
inc eax
dec edx
jne 0x10042632
dec eax
mov esi, 1
mov dword [esp + 0x10], esi
mov byte [eax], dl
jmp 0x10042502
test edx, edx
jne 0x1004265f
dec eax
mov esi, 1
mov byte [eax], 0
mov dword [esp + 0x10], esi
jmp 0x10042502
xor eax, eax
jmp 0x1004254d