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

Disassembly:
sub esp, 0x84
cmp dword [0x1003ebc8], 0
push ebx
push esi
push edi
push ebp
jne 0x1000552b
mov ecx, 0xfffffb78
mov eax, 0x10019400
mov dword [eax], ecx
add eax, 4
add ecx, 0x95
cmp eax, 0x10019600
jb 0x100054a1
mov edi, 0xffffcd00
xor ecx, ecx
mov ebx, 0x1a00
mov edx, 0xffffbf00
mov dword [esp + 0x90], 0x1900
mov esi, 0xffffc000
mov dword [ecx + 0x10018400], ebx
mov dword [ecx + 0x10018c00], edi
mov eax, esi
mov ebp, edx
sar eax, 1
add edi, 0x33
sar ebp, 1
add ecx, 4
add eax, ebp
sub ebx, 0x1a
add edx, 0x41
add esi, 0x40
mov dword [ecx + 0x100173fc], eax
mov eax, dword [esp + 0x90]
sub dword [esp + 0x90], 0x19
sar eax, 1
cmp esi, 0x4000
mov dword [ecx + 0x10017bfc], eax
jl 0x100054d4
mov dword [0x1003ebc8], 1
cmp dword [esp + 0xb0], 1
mov eax, 0
adc eax, 0xffffffff
xor ecx, ecx
and eax, 2
cmp dword [esp + 0xa0], ecx
mov dword [esp + 0x10], eax
jle 0x10005b7e
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0xac]
mov dword [esp + 0x7c], 0xffffffc0
lea ebx, [edx + eax*2 - 0x1e0]
sub edx, 0x1e0
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x88], ebx
mov dword [esp + 0x90], edx
lea ebp, [eax + eax*2]
shl ebp, 2
mov dword [esp + 0x80], ebp
mov dword [esp + 0x74], 0
mov dword [esp + 0x28], 0xa0
lea eax, [ecx + 0xa0]
mov dword [esp + 0x8c], eax
cmp dword [esp + 0xa0], eax
jge 0x100055c9
mov eax, dword [esp + 0xa0]
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, 0x1e0
mov ecx, dword [esp + 0x98]
add dword [esp + 0x88], eax
add dword [esp + 0x90], eax
mov eax, dword [esp + 0x90]
mov edx, dword [ecx + 0x46c]
add dword [esp + 0x7c], 0x40
mov ecx, dword [edx + 0x300c]
add ecx, dword [esp + 0x7c]
add ecx, dword [esp + 0x80]
mov dword [esp + 0x60], 0
mov edx, dword [ecx + 4]
mov ebx, dword [ecx]
mov ecx, 0xffffff50
mov dword [esp + 0x5c], edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x48], 1
mov dword [esp + 0x84], 0
cmp dword [esp + 0x9c], 0
mov dword [esp + 0x4c], ecx
jle 0x10005b6a
cmp dword [esp + 0x48], 1
jne 0x1000568c
cmp dword [esp + 0x84], 4
jne 0x1000568c
mov dword [esp + 0x64], 0xffffff50
mov dword [esp + 0x60], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0xb2
mov dword [esp + 0x84], 0
mov eax, dword [esp + 0x88]
mov ecx, 0xb0
add dword [esp + 0x64], ecx
add dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x9c]
sub ecx, dword [esp + 0x84]
mov dword [esp + 0x78], ecx
cmp ecx, 4
jne 0x100056b8
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], 0
cmp dword [esp + 0x74], 3
jle 0x100056da
cmp dword [esp + 0x48], 0
jne 0x10005b4e
cmp dword [esp + 0x48], 0
je 0x100056f5
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], 0
inc dword [esp + 0x74]
cmp dword [esp + 0x78], 4
jne 0x10005707
cmp dword [esp + 0x24], 2
je 0x10005b4e
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x58], edx
add dword [esp + 0x4c], 0xb0
mov dword [esp + 0x44], 0
mov ecx, dword [esp + 0x64]
add ecx, edx
mov ebp, dword [esp + 0x60]
add ebp, edx
mov dword [esp + 0x70], ecx
xor ecx, ecx
mov esi, dword [esp + 0x70]
mov dl, byte [ebp + 0x58]
xor ebx, ebx
mov cl, byte [esi + 0x58]
and dl, 0x7f
mov edi, ecx
mov bl, dl
and edi, 0x80
and ecx, 0x7f
imul ebx, dword [esp + 0x24]
imul ecx, dword [esp + 0x20]
add ebx, ecx
mov cl, byte [ebp]
add ebx, 2
and cl, 0x7f
sar ebx, 2
xor edx, edx
mov dl, cl
mov dword [esp + 0x14], ebx
mov cl, byte [esi]
mov dword [esp + 0x40], ebx
shl ebx, 2
and cl, 0x7f
mov dword [esp + 0x70], 0
mov dword [esp + 0x14], ebx
mov byte [esp + 0x70], cl
mov ecx, dword [esp + 0x70]
imul edx, dword [esp + 0x24]
imul ecx, dword [esp + 0x20]
add edx, ecx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x1c], 0
add edx, 2
sar edx, 2
mov dword [esp + 0x3c], edx
shl edx, 2
cmp dword [esp + 0x28], 0
jle 0x10005b2b
mov esi, dword [esp + 0x28]
sub esi, dword [esp + 0x1c]
cmp esi, 4
je 0x100057d8
inc dword [esp + 0x44]
jmp 0x1000580c
mov ecx, dword [esp + 0x98]
mov ebp, dword [ecx + 0x46c]
mov ecx, dword [esp + 0x7c]
add ecx, dword [ebp + 0x300c]
cmp dword [ecx + 0x40], 0
je 0x1000580c
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x44], 0
mov ecx, dword [ebx + ecx + 0x44]
mov dword [esp + 0x58], ecx
mov ebx, dword [esp + 0x40]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x44]
add ebx, dword [esp + 0x58]
add ecx, ebx
mov dword [esp + 0x54], ecx
xor ecx, ecx
mov ebp, dword [esp + 0x54]
neg dword [esp + 0x70]
mov cl, byte [ebp + 0x58]
mov ebp, dword [esp + 0x60]
add ebp, ebx
mov dword [esp + 0x50], ecx
mov ecx, ebp
xor ebx, ebx
mov dword [esp + 0x6c], ebp
mov cl, byte [ecx + 0x58]
and cl, 0x7f
mov bl, cl
mov ecx, dword [esp + 0x50]
and ecx, 0x7f
mov ebp, dword [esp + 0x70]
imul ebx, dword [esp + 0x24]
imul ecx, dword [esp + 0x20]
add ebx, ecx
add ebx, 2
sar ebx, 2
mov dword [esp + 0x40], ebx
lea ecx, [ebp + ebx]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x6c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x70], ebx
mov cl, byte [ebp]
xor ebx, ebx
and cl, 0x7f
mov ebp, dword [esp + 0x54]
mov dword [esp + 0x6c], 0
mov bl, cl
mov cl, byte [ebp]
neg dword [esp + 0x70]
and cl, 0x7f
mov byte [esp + 0x6c], cl
mov ecx, dword [esp + 0x6c]
imul ebx, dword [esp + 0x24]
imul ecx, dword [esp + 0x20]
add ebx, ecx
mov ebp, dword [esp + 0x70]
add ebx, 2
mov dword [esp + 0x6c], ecx
sar ebx, 2
test edi, edi
mov dword [esp + 0x3c], ebx
lea ecx, [ebp + ebx]
mov dword [esp + 0x54], ecx
je 0x10005903
cmp esi, 4
je 0x10005903
cmp dword [esp + 0x1c], 0
je 0x1000590e
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
lea ebx, [esi + ecx*4]
add eax, 0xc
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x14], ebx
sub dword [esp + 0x2c], 4
lea edx, [edx + ecx*4]
jmp 0x10005b0e
cmp dword [esp + 0x1c], 0
jne 0x100059ea
cmp dword [esp + 0x48], 0
jne 0x100059ea
xor edi, edi
mov ebx, dword [esp + 0x68]
xor ecx, ecx
add ebx, edi
mov esi, dword [esp + 0x4c]
add ebx, dword [esp + 0x1c]
mov cl, byte [ebx + esi - 2]
mov esi, dword [esp + 0x14]
mov ebx, dword [ecx*4 + 0x10019400]
mov ecx, dword [edx*4 + 0x10018c00]
add ecx, ebx
mov dword [esp + 0x18], ebx
sar ecx, 6
mov ebx, dword [edx*4 + 0x10018400]
add ebx, dword [esi*4 + 0x10017c00]
mov esi, dword [esi*4 + 0x10017400]
add ebx, dword [esp + 0x18]
add esi, dword [esp + 0x18]
sar ebx, 6
sar esi, 6
test ch, ch
mov dword [esp + 0x18], esi
je 0x10005989
mov esi, dword [esp + 0x10]
test ecx, ecx
jge 0x10005983
mov byte [eax + esi], 0
jmp 0x10005990
mov byte [eax + esi], 0xff
jmp 0x10005990
mov esi, dword [esp + 0x10]
mov byte [eax + esi], cl
test bh, bh
je 0x100059a4
test ebx, ebx
jge 0x1000599e
mov byte [eax + 1], 0
jmp 0x100059a7
mov byte [eax + 1], 0xff
jmp 0x100059a7
mov byte [eax + 1], bl
cmp byte [esp + 0x19], 0
je 0x100059cb
cmp dword [esp + 0x18], 0
mov ecx, eax
jge 0x100059c1
sub ecx, dword [esp + 0x10]
mov byte [ecx + 2], 0
jmp 0x100059d8
sub ecx, dword [esp + 0x10]
mov byte [ecx + 2], 0xff
jmp 0x100059d8
mov esi, eax
mov cl, byte [esp + 0x18]
sub esi, dword [esp + 0x10]
mov byte [esi + 2], cl
add eax, 3
inc edi
cmp edi, 2
jl 0x1000591b
sub dword [esp + 0x2c], 2
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
shl esi, 2
lea edi, [edx*4]
shl ecx, 2
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x54]
shl ecx, 2
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x2c]
dec dword [esp + 0x2c]
test ecx, ecx
jle 0x10005b0e
mov ebx, dword [esp + 0x68]
xor ecx, ecx
add ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x4c]
add ebx, dword [esp + 0x1c]
mov cl, byte [ebx + esi]
mov esi, dword [esp + 0x34]
mov ebx, dword [ecx*4 + 0x10019400]
mov ecx, dword [edi + 0x10018c00]
add ecx, ebx
mov dword [esp + 0x18], ebx
sar ecx, 6
mov ebx, dword [edi + 0x10018400]
add ebx, dword [esi + 0x10017c00]
mov esi, dword [esi + 0x10017400]
add ebx, dword [esp + 0x18]
add esi, dword [esp + 0x18]
sar ebx, 6
sar esi, 6
test ch, ch
mov dword [esp + 0x18], esi
je 0x10005a95
mov esi, dword [esp + 0x10]
test ecx, ecx
jge 0x10005a8f
mov byte [eax + esi], 0
jmp 0x10005a9c
mov byte [eax + esi], 0xff
jmp 0x10005a9c
mov esi, dword [esp + 0x10]
mov byte [eax + esi], cl
test bh, bh
je 0x10005ab0
test ebx, ebx
jge 0x10005aaa
mov byte [eax + 1], 0
jmp 0x10005ab3
mov byte [eax + 1], 0xff
jmp 0x10005ab3
mov byte [eax + 1], bl
cmp byte [esp + 0x19], 0
je 0x10005ad7
cmp dword [esp + 0x18], 0
mov ecx, eax
jge 0x10005acd
sub ecx, dword [esp + 0x10]
mov byte [ecx + 2], 0
jmp 0x10005ae4
sub ecx, dword [esp + 0x10]
mov byte [ecx + 2], 0xff
jmp 0x10005ae4
mov esi, eax
mov cl, byte [esp + 0x18]
sub esi, dword [esp + 0x10]
mov byte [esi + 2], cl
add eax, 3
mov esi, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
add edi, dword [esp + 0x6c]
add edx, dword [esp + 0x54]
add dword [esp + 0x34], esi
add dword [esp + 0x14], ecx
inc dword [esp + 0x30]
cmp dword [esp + 0x30], 4
jl 0x10005a1a
add dword [esp + 0x1c], 4
mov edi, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
and edi, 0x80
cmp dword [esp + 0x28], ecx
jg 0x100057c5
mov ecx, dword [esp + 0x28]
dec dword [esp + 0x20]
inc dword [esp + 0x24]
lea edx, [ecx + ecx*2]
sub eax, edx
add eax, dword [esp + 0xac]
cmp dword [esp + 0x20], 0
jg 0x100056c8
add dword [esp + 0x84], 4
mov ecx, dword [esp + 0x84]
cmp dword [esp + 0x9c], ecx
jg 0x10005649
mov ecx, dword [esp + 0x8c]
cmp dword [esp + 0xa0], ecx
jg 0x10005596
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x84
ret