Function at 0x10031460
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10040960
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x1005a690]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1005a690]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov edx, ecx
mov dword [esp + 0x18], edx
mov ebp, dword [esp + 0x74]
mov edi, dword [esp + 0x7c]
mov esi, dword [esp + 0x78]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov al, byte [edx + 0xc]
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], ecx
mov byte [esp + 0x17], al
test ebp, ebp
je 0x10031913
mov ebx, dword [esp + 0x80]
mov eax, dword [ebp]
cmp eax, 0x1d
ja case.0x100314e5.3
movzx eax, byte [eax + 0x1003197c]
jmp dword [eax*4 + 0x10031934]
mov al, byte [ebp + 8]
mov byte [esp + 0x17], al
mov ebp, dword [ebp + 4]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
test ebp, ebp
jne 0x100314d6
jmp 0x10031913
cmp ecx, ebp
je 0x100315df
test ecx, ecx
jne case.0x100314e5.13
mov eax, dword [ebp + 4]
mov ecx, ebp
mov ebp, dword [ebp + 8]
mov dword [esp + 0x24], ecx
cmp dword [ebp], 0
mov dword [esp + 0x30], eax
jne 0x10031537
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], eax
jmp 0x100314f6
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x100314f6
mov ebp, dword [ebp + 8]
or eax, 0xffffffff
jmp 0x100314fa
mov ecx, dword [ebp + 8]
test ecx, ecx
js case.0x100314e5.6
cmp dword [esp + 0x24], 0
je 0x10031571
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10031571
cmp eax, ecx
jne 0x10031571
mov ebp, dword [esp + 0x30]
xor ecx, ecx
mov dword [esp + 0x24], ecx
jmp 0x100314f6
mov eax, dword [edx]
cmp byte [eax + 0x150], 0
je 0x100315c1
test ecx, ecx
je 0x100315c1
mov eax, dword [eax + 0x28]
test eax, eax
je 0x100315c1
cmp dword [eax], 0x1d
jne 0x100315a0
mov ecx, dword [eax + 8]
cmp dword [ecx], 0
jne 0x100315a0
mov edi, dword [ebp + 8]
cmp dword [ecx + 8], edi
mov edi, dword [esp + 0x20]
je 0x100315b0
mov eax, dword [eax + 4]
test eax, eax
jne 0x10031587
mov ecx, dword [esp + 0x24]
jmp case.0x100314e5.3
push ebx
push edi
push esi
push dword [eax + 4]
mov ecx, edx
call fcn.10031460
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
jmp case.0x100314e5.3
cmp dword [ebp + 8], 0xfffffffd
jne case.0x100314e5.3
mov eax, dword [ebp + 4]
mov ebp, dword [eax + 4]
jmp 0x100314f6
mov eax, dword [edx]
cmp dword [eax + 0x18], 0
jne 0x100315ee
mov dword [eax + 0x18], 2
mov eax, dword [edx]
mov dword [eax + 0x1c], 0
mov eax, dword [edx]
mov dword [eax + 0x20], 0
mov eax, dword [edx]
test dword [eax + 0x14], 0x40000
jne case.0x100314e5.13
push str.Encountered_an_infinite_recursion.
lea ecx, [esp + 0x4c]
call fcn.10009ef0
push 0
push 2
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x78], 0
call fcn.1003d780
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 1
call fcn.1003dad0
lea ecx, [esp + 0x34]
call fcn.1003d840
lea ecx, [esp + 0x48]
call fcn.10009f50
mov edx, dword [esp + 0x18]
test edi, edi
je case.0x100314e5.5
movzx eax, bl
or dword [edi], eax
push ebx
push esi
mov ecx, edx
call fcn.1003b640
jmp 0x10031913
push ebx
push esi
mov ecx, edx
call fcn.1003b640
jmp case.0x100314e5.12
test esi, esi
je 0x10031913
or byte [esi], 4
movzx ebp, word [ebp + 0xc]
mov cl, byte [esp + 0x17]
xor edi, edi
test cl, cl
je 0x100316b0
mov eax, dword [edx + 4]
mov ecx, edi
mov edx, dword [eax]
mov edx, dword [edx]
call fcn.1003d250
mov edx, dword [esp + 0x18]
mov cl, byte [esp + 0x17]
movzx eax, ax
jmp 0x100316b3
movzx eax, di
cmp ax, bp
jne 0x100316be
or byte [esi + edi], bl
lea eax, [esi + edi]
inc edi
cmp edi, 0x100
jb 0x10031691
jmp 0x10031913
test esi, esi
je 0x100316e2
or byte [esi], 4
or byte [esi + 0xa], bl
or byte [esi + 0xd], bl
or byte [esi + 0xc], bl
or byte [esi + 0x85], bl
test edi, edi
je 0x10031913
push ebx
push edi
push 0
push dword [ebp + 4]
mov ecx, edx
call fcn.10031460
jmp 0x10031913
push ebx
push edi
push esi
push dword [ebp + 4]
mov ecx, edx
call fcn.10031460
test esi, esi
je 0x10031913
or byte [esi], 4
xor edi, edi
jmp 0x10031720
mov eax, dword [esp + 0x18]
push dword [eax + 0x2c]
mov ecx, dword [eax + 4]
push edi
call fcn.10034550
test al, al
jne 0x1003173b
mov al, bl
not al
and byte [esi + edi], al
inc edi
cmp edi, 0x100
jb 0x10031720
jmp 0x10031913
push ebx
push edi
push esi
push dword [ebp + 4]
mov ecx, edx
call fcn.10031460
test esi, esi
je 0x10031913
or byte [esi], 4
xor edi, edi
mov eax, dword [esp + 0x18]
push dword [eax + 0x2c]
mov ecx, dword [eax + 4]
push edi
call fcn.10034550
test al, al
je 0x1003177e
mov al, bl
not al
and byte [esi + edi], al
inc edi
cmp edi, 0x100
jb 0x10031763
jmp 0x10031913
test esi, esi
je 0x10031913
cmp byte [ebp + 0x1d], 0
je case.0x100314e5.5
or byte [esi], 4
xor edi, edi
movzx eax, di
mov dword [esp + 0x28], eax
movzx eax, byte [edx + 0xc]
push eax
push dword [edx]
lea edx, [esp + 0x32]
push ebp
lea ecx, [esp + 0x34]
call fcn.1002c9b0
lea ecx, [esp + 0x28]
cmp ecx, eax
je 0x100317cd
or byte [esi + edi], bl
lea eax, [esi + edi]
mov edx, dword [esp + 0x18]
inc edi
cmp edi, 0x100
jb 0x100317a3
jmp 0x10031913
test esi, esi
je 0x10031913
or byte [esi], 4
mov cl, byte [esp + 0x17]
xor edi, edi
test cl, cl
je 0x1003180f
mov eax, dword [edx + 4]
mov ecx, edi
mov edx, dword [eax]
mov edx, dword [edx]
call fcn.1003d250
mov edx, dword [esp + 0x18]
mov cl, byte [esp + 0x17]
movzx eax, ax
jmp 0x10031812
movzx eax, di
movzx eax, al
cmp byte [eax + ebp + 8], 0
je 0x10031822
or byte [esi + edi], bl
lea eax, [esi + edi]
inc edi
cmp edi, 0x100
jb 0x100317f0
jmp 0x10031913
test byte [ebp + 0xc], 4
je 0x10031893
test esi, esi
je 0x10031882
or byte [esi], 4
xor ecx, ecx
nop
test byte [ecx + ebp + 0xc], 3
je 0x1003184d
or byte [esi + ecx], bl
lea eax, [esi + ecx]
test byte [ecx + ebp + 0xd], 3
je 0x1003185b
or byte [esi + ecx + 1], bl
lea eax, [esi + ecx]
test byte [ecx + ebp + 0xe], 3
je 0x10031869
or byte [esi + ecx + 2], bl
lea eax, [esi + ecx]
test byte [ecx + ebp + 0xf], 3
je 0x10031877
or byte [esi + ecx + 3], bl
lea eax, [esi + ecx]
add ecx, 4
cmp ecx, 0xff
jbe 0x10031840
test edi, edi
je 0x10031913
test byte [ebp + 0x10c], 3
jmp 0x1003190c
push ebp
mov ecx, edx
call fcn.10034500
test al, al
je 0x100318b9
mov ecx, dword [esp + 0x18]
push ebx
push esi
call fcn.1003b640
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x10031913
movzx eax, bl
or dword [ecx], eax
jmp 0x10031913
mov edi, dword [esp + 0x18]
push ebp
mov ecx, edi
call fcn.1003b690
push ebx
push dword [esp + 0x24]
mov ecx, edi
push esi
push dword [ebp + 4]
call fcn.10031460
cmp dword [ebp], 0x11
je 0x100318eb
cmp dword [ebp + 0x110], 0
je 0x100318eb
cmp dword [esp + 0x1c], 0
jne 0x10031913
push ebx
push dword [esp + 0x24]
mov ecx, edi
push esi
push dword [ebp + 8]
call fcn.10031460
jmp 0x10031913
test esi, esi
je case.0x100314e5.12
or byte [esi], 4
or byte [esi + 0xa], bl
or byte [esi + 0xd], bl
test edi, edi
je 0x10031913
movzx eax, bl
or dword [edi], eax
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.1003e328
add esp, 0x5c
ret 0x10