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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov ebx, ecx
mov edi, dword [ebp + 8]
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov dword [edi], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x3c], 0x100000
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xb8bbba85
mov byte [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov eax, dword [esp + 0x20]
cmp eax, 4
ja 0x3112e6b
nop
nop
mov eax, dword [esp + 0x20]
movzx eax, byte [esp + eax + 0x14]
push dword [esp + 0x20]
push eax
call fcn.030f7180
add esp, 8
mov ecx, dword [esp + 0x20]
mov byte [esp + ecx + 0x14], al
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp eax, 5
jb 0x3112e40
mov eax, dword [esp + 0x14]
mov ecx, dword [0x3124fa4]
test ecx, ecx
je 0x3112ece
xor edx, edx
mov esi, dword [0x3124fa8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x633c81d
je 0x3112ea0
inc edx
cmp ecx, edx
jne 0x3112e90
jmp 0x3112ece
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x3112ece
lea eax, [esp + 0x3c]
lea edx, [esp + 0x10]
push 4
push 0x3000
push eax
push 0
push edx
push 0xffffffffffffffff
push 6
push dword [0x3124fac]
push ecx
call fcn.03115510
add esp, 0x24
test eax, eax
js 0x3113522
cmp dword [ebx + 4], 0
je 0x31134b0
xor edx, edx
cmp dword [ebx + 4], 2
mov esi, 0x7fff
je 0x3112ef2
mov esi, 0
mov dword [esp + 0x50], ebx
mov edi, 0xfffeffff
je 0x3112f02
mov edi, SysReAllocString
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x60], 0
mov ebx, 0x10000
mov dword [esp + 0x4c], edi
jmp 0x3112f5c
mov ebx, dword [esp + 0x30]
add ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
adc edx, dword [esp + 0x24]
cmp ebx, edi
mov eax, edx
sbb eax, esi
jae 0x3113427
mov dword [esp + 0x5c], edx
mov ecx, dword [esp + 0x50]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x2c]
push eax
push edx
push ebx
call fcn.031128c0
cmp eax, 0xbfffffff
ja 0x3113427
test eax, eax
js 0x3112f40
cmp dword [esp + 0x64], 0x1000
jne 0x3112f40
test byte [esp + 0x60], 0x66
je 0x3112f40
mov eax, dword [esp + 0x30]
cmp dword [esp + 0x3c], eax
mov edx, dword [esp + 0x34]
mov ecx, 0
sbb ecx, edx
jae 0x3113124
mov edi, esi
mov dword [esp + 0x14], 0xb8bbba85
mov byte [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x3113006
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x14]
push dword [esp]
push eax
call fcn.030f7180
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x3112fe0
mov eax, dword [0x3124fa4]
test eax, eax
je 0x311305a
mov ecx, dword [esp + 0x14]
xor edx, edx
mov esi, dword [0x3124fa8]
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x44caaeb6
je 0x3113030
inc edx
cmp eax, edx
jne 0x3113020
jmp 0x311305a
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x311305a
push 0x8000
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x3124fac]
push eax
call fcn.03115510
add esp, 0x1c
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], 0xb8bbba85
mov byte [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x31130b6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x14]
push dword [esp]
push eax
call fcn.030f7180
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x3113090
mov eax, dword [esp + 0x14]
mov ecx, dword [0x3124fa4]
test ecx, ecx
je 0x311310e
xor edx, edx
mov esi, dword [0x3124fa8]
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x633c81d
je 0x31130e0
inc edx
cmp ecx, edx
jne 0x31130d0
jmp 0x311310e
mov ecx, dword [esi + edx*8 + 4]
cmp ecx, eax
je 0x311310e
push 4
push 0x3000
lea eax, [esp + 0x44]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
push 6
push dword [0x3124fac]
push ecx
call fcn.03115510
add esp, 0x24
test eax, eax
mov esi, edi
mov edi, dword [esp + 0x4c]
js 0x3113427
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x58], ebx
mov ebx, esp
push ebx
push edx
push eax
push dword [esp + 0x1c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call fcn.03112b70
test eax, eax
jns 0x3113151
cmp eax, 0x8000000d
jne 0x3112f40
mov eax, dword [esp]
mov ecx, dword [esp + 4]
cmp eax, dword [ebp + 0x10]
sbb ecx, 0
jb 0x3112f40
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
call fcn.03113570
add esp, 0x18
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x54], eax
cmp ecx, eax
je 0x3112f40
mov dword [esp + 0x70], esi
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov dword [esp + 0x2c], edx
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], ecx
mov edi, ecx
mov dword [esp + 0x28], esi
mov ebx, eax
jmp 0x31131e3
mov edx, dword [esp + 0x28]
mov dword [edx + esi], ecx
mov eax, dword [esp + 0x78]
mov dword [edx + esi + 4], eax
add ebx, 8
add edi, 4
mov eax, ebx
mov esi, edx
cmp edi, dword [esp + 0x54]
je 0x31133e8
mov edx, eax
mov ecx, dword [edi]
sub ecx, dword [esp + 0x10]
mov eax, ecx
sar eax, 0x1f
add ecx, dword [esp + 0x58]
adc eax, dword [esp + 0x5c]
mov dword [esp + 0x78], eax
mov eax, edx
sub eax, esi
cmp edx, dword [esp + 0x2c]
mov dword [esp + 0xc], eax
jne 0x3113394
mov dword [esp + 0x40], edx
mov dword [esp + 0x48], ecx
mov ecx, eax
sar ecx, 3
lea eax, [ecx + 1]
mov ebx, ecx
shr ebx, 1
add ebx, ecx
cmp ebx, eax
ja 0x311322a
mov ebx, eax
mov eax, ebx
and eax, 8
mov ecx, ebx
or ecx, 8
imul ecx, eax
xor eax, 8
mov edx, ebx
and edx, 0xfffffff7
imul edx, eax
add ecx, edx
push ecx
call fcn.030dc610
add esp, 4
test esi, esi
mov dword [esp + 0x28], eax
je 0x311337d
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x44], edi
cmp eax, esi
jbe 0x311331f
cmp dword [esp + 0x40], eax
jbe 0x311331f
cmp dword [esp + 0xc], 0
je 0x3113368
mov edx, dword [esp + 0xc]
lea eax, [esi + edx]
dec eax
mov ecx, dword [esp + 0x28]
add ecx, edx
dec ecx
mov edi, edx
and edi, 7
je 0x31132b4
neg edi
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edx]
mov byte [ecx + edx], bl
dec edx
cmp edi, edx
jne 0x31132a0
add eax, edx
add ecx, edx
add edx, dword [esp + 0xc]
mov edi, esi
sub edi, dword [esp + 0x40]
cmp edi, 0xfffffff8
ja 0x3113368
neg edx
xor edi, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [eax + edi]
mov byte [ecx + edi], bl
movzx ebx, byte [eax + edi - 1]
mov byte [ecx + edi - 1], bl
movzx ebx, byte [eax + edi - 2]
mov byte [ecx + edi - 2], bl
movzx ebx, byte [eax + edi - 3]
mov byte [ecx + edi - 3], bl
movzx ebx, byte [eax + edi - 4]
mov byte [ecx + edi - 4], bl
movzx ebx, byte [eax + edi - 5]
mov byte [ecx + edi - 5], bl
movzx ebx, byte [eax + edi - 6]
mov byte [ecx + edi - 6], bl
movzx ebx, byte [eax + edi - 7]
mov byte [ecx + edi - 7], bl
add edi, 0xfffffff8
cmp edx, edi
jne 0x31132d0
jmp 0x3113368
mov ebx, dword [esp + 0xc]
mov ecx, ebx
shr ecx, 2
mov edx, esi
mov edi, eax
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edx, ebx
and edx, 0xfffffffc
lea edi, [eax + edx]
add edx, esi
mov ecx, ebx
mov eax, ebx
shr ecx, 1
and ecx, 1
mov ebx, edx
mov dword [esp + 0x74], edi
xchg esi, ebx
rep movsw word es:[edi], word [esi]
xchg esi, ebx
test al, 1
je 0x3113368
mov ecx, dword [esp + 0xc]
and ecx, 2
movzx edx, byte [edx + ecx]
mov eax, dword [esp + 0x74]
mov byte [eax + ecx], dl
push esi
call fcn.030dc620
add esp, 4
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
lea ecx, [eax + ebx*8]
mov dword [esp + 0x2c], ecx
mov ebx, eax
mov eax, dword [esp + 0xc]
add ebx, eax
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
mov eax, esi
xor eax, edx
not esi
and esi, edx
add esi, esi
sub esi, eax
cmp esi, dword [esp + 0xc]
jae 0x31131c0
mov edx, dword [esp + 0x28]
lea eax, [edx + esi]
add edx, esi
add edx, 8
mov dword [esp + 0xc], edx
mov edx, eax
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0xc]
mov dword [esp + 0x48], ecx
xor ecx, ecx
xchg esi, edx
rep movsd dword es:[edi], dword [esi]
xchg esi, edx
mov edi, dword [esp + 0xc]
xor ecx, ecx
xchg esi, eax
rep movsw word es:[edi], word [esi]
xchg esi, eax
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
jmp 0x31131c0
mov edi, dword [ebp + 8]
mov dword [edi + 4], ebx
mov eax, dword [esp + 0x28]
mov dword [edi], eax
mov eax, dword [esp + 0x2c]
mov dword [edi + 8], eax
mov eax, dword [esp + 0x6c]
test eax, eax
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x4c]
je 0x3112f40
cmp eax, dword [esp + 0x54]
je 0x3112f40
push eax
call fcn.030dc620
add esp, 4
jmp 0x3112f40
mov dword [esp + 0x14], 0xb8bbba85
mov byte [esp + 0x18], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 4
ja 0x3113476
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
movzx eax, byte [esp + eax + 0x14]
push dword [esp]
push eax
call fcn.030f7180
add esp, 8
mov ecx, dword [esp]
mov byte [esp + ecx + 0x14], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 5
jb 0x3113450
mov eax, dword [0x3124fa4]
test eax, eax
mov edi, dword [ebp + 8]
je 0x3113522
mov ecx, dword [esp + 0x14]
xor edx, edx
mov esi, dword [0x3124fa8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [esi + edx*8], 0x44caaeb6
je 0x31134f8
inc edx
cmp eax, edx
jne 0x31134a0
jmp 0x3113522
push 0xfb1631b0
push dword [0x3124f98]
call fcn.03118120
add esp, 8
test eax, eax
je 0x311352e
mov ecx, dword [ebx]
test ecx, ecx
je 0x3112ee0
mov dword [esp + 0x14], 0
lea edx, [esp + 0x14]
push edx
push ecx
call eax
test eax, eax
je 0x311353a
cmp dword [esp + 0x14], 0
je 0x311353a
mov dword [ebx + 4], 3
jmp 0x3112ee0
mov eax, dword [esi + edx*8 + 4]
cmp eax, ecx
je 0x3113522
push 0x8000
lea ecx, [esp + 0x6c]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0xffffffffffffffff
push 4
push dword [0x3124fac]
push eax
call fcn.03115510
add esp, 0x1c
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
mov dword [ebx + 4], 1
jmp 0x3112ee0
lea eax, [esp + 0x20]
push eax
call fcn.031189b0
add esp, 4
test al, al
je 0x3112ee0
mov eax, dword [esp + 0x20]
mov ecx, 2
cmp eax, 3
je 0x311355f
mov ecx, eax
mov dword [ebx + 4], ecx
jmp 0x3112ee0