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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
and esp, 0xfffffff0
sub esp, 0x40
mov eax, dword [0x1005044]
mov dword [esp + 0x3c], eax
xor eax, eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
test byte [ebx + 0xa], 8
je 0x81513e
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x40]
cmp dword [ebx + 0x24], eax
setae al
movzx eax, al
mov dword [esp + 0x24], eax
mov eax, dword [ebx]
test eax, eax
je 0x815918
lea eax, [ebx + 0x39272]
mov dword [esp + 0x2c], eax
mov dword [ebx + 0x30], eax
add eax, 0x14cbc
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
jne 0x815848
mov edx, dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x38]
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x5c], 0
movzx eax, byte [edx]
sarx eax, eax, ecx
mov byte [edx], al
mov ecx, dword [ebx + 8]
xor eax, eax
cmp dword [ebx + 0x38], 8
mov edx, dword [ebx + 0x48]
sete al
mov esi, dword [ebx + 0x30]
sub dword [ebx + 0x28], eax
mov eax, dword [ebx + 0x44]
test ch, 0x10
je 0x8152d0
mov edi, dword [ebx + 0x64]
test edi, edi
jne 0x8152d0
and ecx, 0xfff
mov dword [esp + 0x20], ecx
je 0x815b2a
cmp ecx, 1
je 0x8151f9
cmp ecx, 6
je 0x815acd
cmp ecx, 0x20
je 0x815acd
cmp ecx, 0x10
je 0x815acd
cmp ecx, 0x80
mov edi, 0x9c
mov ecx, 0xda
cmove ecx, edi
mov dword [esp + 0x20], ecx
mov edi, 0x78
mov ecx, dword [ebx + 0x34]
shlx edi, edi, eax
or edi, edx
lea edx, [eax + 8]
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x44], edx
cmp edx, 7
jbe 0x815ada
cmp esi, ecx
jb 0x815250
lea eax, [edx - 8]
shr edi, 8
mov dword [esp + 0x1c], eax
cmp eax, 7
jbe 0x815b4d
mov edx, dword [esp + 0x1c]
lea esi, [esi]
mov eax, edx
sub edx, 8
shr edi, 8
cmp edx, 7
ja 0x815238
jmp 0x81527c
lea eax, [esi + 1]
mov edx, 8
mov dword [ebx + 0x30], eax
mov eax, edi
mov byte [esi], al
mov eax, dword [ebx + 0x44]
shrx edi, dword [ebx + 0x48], edx
mov esi, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x48], edi
lea edx, [eax - 8]
mov dword [ebx + 0x44], edx
cmp edx, 7
ja 0x81521a
shlx edx, dword [esp + 0x20], edx
or edx, edi
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], edx
cmp esi, ecx
jae 0x8152bd
lea eax, [esi + 1]
mov dword [ebx + 0x30], eax
mov eax, 8
mov byte [esi], dl
shrx edx, dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x48], edx
mov esi, dword [ebx + 0x30]
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x8152d0
mov ecx, dword [ebx + 0x34]
cmp esi, ecx
jb 0x81528f
shr edx, 8
sub eax, 8
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x44], eax
cmp eax, 7
ja 0x81528b
nop
xor ecx, ecx
cmp dword [esp + 0x28], 4
lea edi, [eax + 1]
sete cl
mov dword [ebx + 0x44], edi
shlx ecx, ecx, eax
or ecx, edx
mov dword [ebx + 0x48], ecx
cmp edi, 7
jbe 0x81548b
cmp esi, dword [ebx + 0x34]
jb 0x815460
shr ecx, 8
sub edi, 8
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], edi
cmp edi, 7
jbe 0x81548b
lea esi, [esi]
sub edi, 8
shr ecx, 8
cmp edi, 7
ja 0x815318
mov edx, dword [esp + 0x24]
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], edi
test edx, edx
jne 0x815497
mov edx, 1
test byte [ebx + 0xa], 4
je 0x8156f0
mov eax, ebx
mov dword [esp + 0x24], ecx
call fcn.008139a0
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x3c]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x8156b8
mov eax, dword [esp + 0x20]
test eax, eax
je 0x815580
mov edx, dword [ebx + 0x30]
mov edi, dword [esp + 0x28]
test edi, edi
je 0x8155a4
mov eax, dword [ebx + 0x44]
cmp edi, 4
je 0x815996
add eax, 3
mov ecx, dword [ebx + 0x48]
mov esi, dword [ebx + 0x34]
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x81575e
cmp edx, esi
jb 0x815730
shr ecx, 8
sub eax, 8
mov dword [ebx + 0x48], ecx
cmp eax, 7
jbe 0x81575e
lea esi, [esi]
sub eax, 8
shr ecx, 8
cmp eax, 7
ja 0x8153c0
mov dword [ebx + 0x48], ecx
test eax, eax
jne 0x815766
lea esi, [esi]
lea esi, [esi]
mov dword [esp + 0x24], 2
xor edi, edi
mov dword [esp + 0x28], edx
shlx edx, edi, eax
add eax, 0x10
or ecx, edx
mov edx, dword [esp + 0x28]
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
cmp edx, esi
jb 0x8157d0
shr ecx, 8
sub eax, 8
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x28]
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x81543d
lea esi, [esi]
nop
sub eax, 8
shr ecx, 8
cmp eax, 7
ja 0x815428
mov dword [esp + 0x28], edx
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
xor edi, 0xffff
cmp dword [esp + 0x24], 1
je 0x815813
nop
mov dword [esp + 0x24], 1
jmp 0x8153ee
lea eax, [esi + 1]
mov dword [ebx + 0x30], eax
mov eax, 8
mov byte [esi], cl
shrx ecx, dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x48], ecx
mov esi, dword [ebx + 0x30]
lea edi, [eax - 8]
mov dword [ebx + 0x44], edi
cmp edi, 7
ja 0x8152f3
mov edx, dword [esp + 0x24]
test edx, edx
je 0x815335
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x40]
cmp dword [ebx + 0x24], eax
jb 0x815580
lea eax, [edi + 2]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
cmp eax, 7
ja 0x8154e7
jmp 0x815941
lea eax, [esi + 1]
mov dword [ebx + 0x30], eax
mov eax, 8
mov byte [esi], cl
shrx ecx, dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x48], ecx
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x8154fd
mov esi, dword [ebx + 0x30]
cmp esi, dword [ebx + 0x34]
jb 0x8154c0
shr ecx, 8
sub eax, 8
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
cmp eax, 7
ja 0x8154e4
test eax, eax
jne 0x81593e
mov esi, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x30]
mov dword [esp + 0x24], 2
movzx esi, si
shlx esi, esi, eax
add eax, 0x10
or ecx, esi
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
cmp edx, dword [ebx + 0x34]
jb 0x815700
shr ecx, 8
sub eax, 8
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x815558
sub eax, 8
shr ecx, 8
cmp eax, 7
ja 0x815540
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
lea esi, [esi]
mov edi, dword [ebx + 0x3c]
mov esi, edi
xor esi, 0xffff
cmp dword [esp + 0x24], 1
mov dword [ebx + 0x3c], esi
je 0x81586a
mov dword [esp + 0x24], 1
jmp 0x815513
mov dword [ebx + 0x44], edi
mov edx, 1
mov eax, ebx
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x48], ecx
call fcn.008139a0
mov edi, dword [esp + 0x28]
mov edx, dword [ebx + 0x30]
test edi, edi
jne 0x815381
mov esi, dword [ebx + 0x34]
cmp edx, esi
jae 0x81581f
lea edi, [ebx + 0x8196]
lea ecx, [ebx + 0x8192]
xor eax, eax
xor edx, edx
and edi, 0xfffffffc
vpxor xmm0, xmm0, xmm0
mov dword [ebx + 0x8192], 0
mov dword [ebx + 0x83ce], 0
sub ecx, edi
add ecx, 0x240
shr ecx, 2
rep stosd dword es:[edi], eax
lea eax, [ebx + 0x9273]
vmovdqu xmmword [ebx + 0x83d2], xmm0
mov dword [ebx + 0x28], eax
lea eax, [ebx + 0x9272]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x3c]
add dword [ebx + 0x40], eax
mov eax, 8
mov dword [ebx + 0x38], eax
mov eax, dword [esp + 0x2c]
add dword [ebx + 0x64], 1
mov dword [ebx + 0x3c], edx
vmovdqu xmmword [ebx + 0x83e2], xmm0
vmovdqu xmmword [ebx + 0x83f2], xmm0
vmovdqu xmmword [ebx + 0x8402], xmm0
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.007df290
mov esi, eax
test eax, eax
je 0x815699
mov edi, dword [ebx]
lea edx, [ebx + 0x39272]
test edi, edi
je 0x815aac
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x78]
mov dword [esp + 0x28], edx
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 0x2c], ecx
mov dword [esp], eax
call fcn.007df290
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], edx
call edi
test eax, eax
je 0x815b37
mov eax, dword [ebx + 0x5c]
mov edx, dword [esp + 0x3c]
sub edx, dword [0x1005044]
jne 0x815b48
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], esi
mov edx, dword [ebx + 0x30]
mov dword [esp], edx
call fcn.007df290
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add eax, 1
cmp eax, edx
jb 0x815366
mov eax, dword [ebx + 0x1c]
sub eax, dword [ebx + 0x40]
cmp dword [ebx + 0x24], eax
jae 0x8154a6
jmp 0x815366
xor edx, edx
cmp dword [ebx + 0x3c], 0x2f
setbe dl
jmp 0x815344
lea eax, [edx + 1]
mov dword [ebx + 0x30], eax
mov eax, 8
mov byte [edx], cl
shrx ecx, dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x48], ecx
mov edx, dword [ebx + 0x30]
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x815558
jmp 0x815526
lea eax, [edx + 1]
mov dword [ebx + 0x30], eax
mov eax, 8
mov byte [edx], cl
shrx ecx, dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x30]
mov esi, dword [ebx + 0x34]
mov dword [ebx + 0x48], ecx
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
ja 0x8153a2
test eax, eax
je 0x8153e0
mov dword [ebx + 0x44], 8
mov eax, 8
cmp edx, esi
jae 0x8157b0
lea eax, [edx + 1]
mov dword [ebx + 0x30], eax
mov eax, 8
mov byte [edx], cl
shrx ecx, dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x30]
mov esi, dword [ebx + 0x34]
mov dword [ebx + 0x48], ecx
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x8153e0
cmp edx, esi
jb 0x815776
lea esi, [esi]
nop
sub eax, 8
shr ecx, 8
cmp eax, 7
jbe 0x8153e0
sub eax, 8
shr ecx, 8
cmp eax, 7
ja 0x8157b0
jmp 0x8153e0
lea eax, [edx + 1]
mov dword [ebx + 0x30], eax
mov eax, 8
mov byte [edx], cl
shrx ecx, dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x30]
mov esi, dword [ebx + 0x34]
mov dword [ebx + 0x48], ecx
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
ja 0x815402
xor edi, 0xffff
cmp dword [esp + 0x24], 1
mov dword [esp + 0x28], edx
jne 0x815450
mov edx, dword [esp + 0x28]
cmp edx, esi
jb 0x8155af
mov dword [esp + 8], 0xc9e
mov dword [esp + 4], 0xe9d540
mov dword [esp], 0xe9d750
call dword [0x100ab58]
jmp 0x8155af
mov dword [esp + 8], 0xc3c
mov dword [esp + 4], 0xe9d540
mov dword [esp], 0xe9d714
call dword [0x100ab58]
jmp 0x815168
xor esi, esi
cmp edi, 0xffff
je 0x815375
lea esi, [esi]
nop
mov edi, dword [ebx + 0x40]
add edi, esi
and edi, 0x7fff
movzx edi, byte [ebx + edi + 0x90]
shlx edi, edi, eax
add eax, 8
or ecx, edi
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
cmp edx, dword [ebx + 0x34]
jb 0x8158e8
shr ecx, 8
sub eax, 8
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x8158d8
lea esi, [esi]
sub eax, 8
shr ecx, 8
cmp eax, 7
ja 0x8158c0
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
lea esi, [esi]
add esi, 1
cmp esi, dword [ebx + 0x3c]
jb 0x815880
jmp 0x815375
lea eax, [edx + 1]
mov dword [ebx + 0x30], eax
mov eax, 8
mov byte [edx], cl
shrx ecx, dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x48], ecx
mov edx, dword [ebx + 0x30]
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x8158d8
jmp 0x8158a3
mov eax, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x8c]
mov eax, dword [eax]
sub eax, edx
cmp eax, 0x14ccb
jbe 0x815148
add edx, dword [ebx + 0x74]
mov dword [esp + 0x2c], edx
mov eax, edx
jmp 0x815152
mov esi, dword [ebx + 0x30]
mov dword [ebx + 0x44], 8
mov eax, 8
jmp 0x81597b
lea eax, [esi + 1]
mov dword [ebx + 0x30], eax
mov eax, 8
mov byte [esi], cl
shrx ecx, dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x48], ecx
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x815505
mov esi, dword [ebx + 0x30]
cmp esi, dword [ebx + 0x34]
jb 0x815950
shr ecx, 8
sub eax, 8
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
cmp eax, 7
ja 0x815978
jmp 0x815505
test eax, eax
je 0x815ac5
mov dword [ebx + 0x44], 8
mov ecx, dword [ebx + 0x48]
mov eax, 8
mov esi, dword [ebx + 0x34]
cmp edx, esi
jb 0x8159db
shr ecx, 8
sub eax, 8
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x815a05
lea esi, [esi]
sub eax, 8
shr ecx, 8
cmp eax, 7
ja 0x8159c8
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
jmp 0x815a05
lea eax, [edx + 1]
mov dword [ebx + 0x30], eax
mov eax, 8
mov byte [edx], cl
shrx ecx, dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x30]
mov esi, dword [ebx + 0x34]
mov dword [ebx + 0x48], ecx
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
ja 0x8159b0
test byte [ebx + 9], 0x10
je 0x8155a7
mov edi, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x48]
mov dword [esp + 0x24], 4
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x28]
shr edi, 0x18
shlx edi, edi, eax
add eax, 8
or ecx, edi
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
cmp edx, esi
jb 0x815a80
shr ecx, 8
sub eax, 8
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x815a68
lea esi, [esi]
sub eax, 8
shr ecx, 8
cmp eax, 7
ja 0x815a50
mov dword [ebx + 0x48], ecx
mov dword [ebx + 0x44], eax
lea esi, [esi]
shl dword [esp + 0x28], 8
sub dword [esp + 0x24], 1
jne 0x815a21
jmp 0x8155a7
lea eax, [edx + 1]
mov dword [ebx + 0x30], eax
mov eax, 8
mov byte [edx], cl
shrx ecx, dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x30]
mov esi, dword [ebx + 0x34]
mov dword [ebx + 0x48], ecx
sub eax, 8
mov dword [ebx + 0x44], eax
cmp eax, 7
jbe 0x815a68
jmp 0x815a38
mov eax, dword [ebx + 0x8c]
cmp dword [esp + 0x2c], edx
je 0x815ae2
add eax, esi
mov dword [ebx + 0x8c], eax
jmp 0x815699
mov esi, dword [ebx + 0x34]
jmp 0x815a05
mov dword [esp + 0x20], 0x5e
jmp 0x8151f9
add eax, 0x10
jmp 0x81527c
mov edx, dword [ebx + 0x7c]
mov edi, dword [edx]
mov edx, dword [esp + 0x2c]
sub edi, eax
cmp edi, esi
cmova edi, esi
add eax, dword [ebx + 0x74]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], edi
call fcn.007de188
add dword [ebx + 0x8c], edi
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.007df290
test eax, eax
je 0x815699
mov dword [ebx + 0x58], edi
mov dword [ebx + 0x5c], eax
jmp 0x81569c
mov dword [esp + 0x20], 1
jmp 0x8151f9
mov dword [ebx + 0x6c], 0xffffffff
mov eax, 0xffffffff
jmp 0x81569c
call fcn.00401690
mov eax, edx
mov edx, dword [esp + 0x1c]
jmp 0x81527c