Function at 0x100403b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088c21
mov eax, dword fs:[0]
push eax
sub esp, 0x104
mov eax, dword [0x100a7078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x6c], ebx
mov esi, dword [ebp + 8]
mov eax, dword [ebx]
mov dword [0x100aaaac], eax
test esi, esi
je 0x10041026
cmp dword [ebp + 0xc], 1
jne 0x10041026
cmp dword [0x100aa818], 0
je 0x10041026
mov eax, dword [ebx + 4]
test eax, eax
je 0x10040423
cmp esi, eax
jne 0x10040423
call fcn.10041a10
mov al, 1
jmp 0x10041028
mov eax, dword [ebx + 0x138]
test eax, eax
je 0x10040443
cmp esi, eax
jne 0x10040443
mov eax, dword [ebx + 0x148]
cmp eax, 1
jbe 0x10041022
dec eax
jmp 0x10040464
mov eax, dword [ebx + 0x13c]
test eax, eax
je 0x1004047a
cmp esi, eax
jne 0x1004047a
mov eax, dword [ebx + 0x148]
cmp eax, dword [ebx + 0x14c]
jae 0x10041022
inc eax
mov dword [ebx + 0x148], eax
movzx eax, al
push eax
call fcn.10043060
mov al, 1
jmp 0x10041028
mov ecx, dword [ebx + 0x160]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebx + 0x15c]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x10041022
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
xor al, al
mov byte [ebp - 0x61], al
nop dword [eax + eax]
movzx ecx, al
lea eax, [ecx + ecx*2]
mov eax, dword [ebx + eax*8 + 0x30]
test eax, eax
je 0x10041012
cmp esi, eax
jne 0x10041012
lea eax, [ecx + ecx*2]
mov ecx, dword [ebx + 0x160]
mov eax, dword [ebx + eax*8 + 0x1c]
sub ecx, dword [ebx + 0x15c]
mov dword [ebp - 0x70], eax
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x10041012
xor esi, esi
mov ecx, esi
nop dword [eax]
mov eax, dword [ebx + 0x15c]
mov edx, dword [ebp - 0x70]
cmp dword [esi + eax + 0x18], edx
je 0x1004053b
inc ecx
add esi, 0x68
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebx + 0x160]
sub ecx, eax
mov eax, 0x4ec4ec4f
imul ecx
mov ecx, dword [ebp - 0x60]
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x10040500
jmp 0x1004100f
imul ecx, ecx, 0x68
mov dword [ebx + 0x144], edx
mov dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0x70], ecx
cmp byte [eax + ecx + 0x64], 2
jne 0x100405ff
movaps xmm0, xmmword [0x1009ea00]
xor ecx, ecx
movups xmmword [ebp - 0xa4], xmm0
mov dword [ebp - 0x94], 0x696f7267
mov word [ebp - 0x90], 0x5b68
mov byte [ebp - 0x8e], 0
nop word [eax + eax]
mov al, byte [ebp - 0xa4]
xor byte [ebp + ecx - 0xa3], al
inc ecx
cmp ecx, 0x15
jb 0x10040590
lea eax, [ebp - 0xa3]
mov byte [ebp - 0x8e], 0
push eax
lea ecx, [ebp - 0xf8]
call fcn.10002870
mov dword [ebp - 4], 0
lea edx, [ebp - 0xf8]
mov ecx, dword [ebx + 0x7c]
call fcn.10019110
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0xffffffff
call fcn.10002220
mov ecx, dword [ebx + 0x7c]
mov edx, 0xff5cb9fe
call fcn.100191e0
mov dword [ebp - 0x88], 0xff808080
jmp 0x10040692
mov cl, 0x12
mov dword [ebp - 0xc0], 0x7c474912
mov dword [ebp - 0xbc], 0x32607776
xor eax, eax
mov dword [ebp - 0xb8], 0x4f6b7365
mov byte [ebp - 0xb4], 0
nop dword [eax + eax]
xor byte [ebp + eax - 0xbf], cl
inc eax
cmp eax, 0xb
jae 0x10040645
mov cl, byte [ebp - 0xc0]
jmp 0x10040630
lea eax, [ebp - 0xbf]
mov byte [ebp - 0xb4], 0
push eax
lea ecx, [ebp - 0xf8]
call fcn.10002870
mov dword [ebp - 4], 1
lea edx, [ebp - 0xf8]
mov ecx, dword [ebx + 0x7c]
call fcn.10019110
lea ecx, [ebp - 0xf8]
mov dword [ebp - 4], 0xffffffff
call fcn.10002220
mov ecx, dword [ebx + 0x7c]
mov edx, 0xffc4fc03
call fcn.100191e0
lea eax, [ebx + 0x84]
mov dword [ebp - 0x8c], 4
mov dword [ebp - 0x84], eax
lea esi, [ebx + 0xa8]
mov eax, dword [ebp - 0x70]
add eax, 0x48
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x68], eax
nop word [eax + eax]
mov eax, dword [ebx + 0x15c]
mov ecx, dword [ebp - 0x68]
cmp word [ecx + eax], 0
je 0x10040b9c
mov bh, 0x58
mov byte [ebp - 0xcc], 0
mov cl, 0x36
mov byte [ebp - 0xd4], bh
mov bl, cl
mov byte [ebp - 0xcc], 0
mov al, 0xd
mov ah, 0x37
xor al, bh
xor ah, bh
mov ch, 0x2f
mov byte [ebp - 0xd3], al
mov dh, bl
mov byte [ebp - 0xcf], ah
xor cl, bh
lea eax, [ebp - 0xd3]
xor ch, bh
mov byte [ebp - 0xd2], cl
mov dl, 0x33
mov byte [ebp - 0xce], ch
xor dl, bh
lea ecx, [ebp - 0x40]
xor dh, bh
mov byte [ebp - 0xd1], dl
xor bl, bh
mov byte [ebp - 0xcd], dh
push eax
mov byte [ebp - 0xd0], bl
call fcn.10002870
lea eax, [ebp - 0x73]
mov dword [ebp - 4], 2
mov word [ebp - 0x74], 0x2f
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 0x73], 0
call fcn.10002870
mov ebx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 3
mov eax, dword [ebx + 0x15c]
movzx ecx, word [eax + ecx]
call fcn.1000f600
test eax, eax
je 0x100407cc
add eax, 4
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x1004078d
push 0xffffffffffffffff
push 0
push eax
call fcn.10002330
mov ebx, dword [esi]
test ebx, ebx
je 0x100407a6
push 4
push ebx
call edi
test eax, eax
jne 0x100407a6
push 1
mov ecx, ebx
call dword [0x1009d358]
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x10040910
push 4
push ebx
call edi
test eax, eax
jne 0x10040910
push eax
mov ecx, ebx
call dword [0x1009d358]
jmp 0x10040910
mov eax, dword [ebx + 0x15c]
mov ecx, dword [ebp - 0x68]
cmp word [ecx + eax], 1
jne 0x10040910
cmp byte [0x100aa87d], 0
mov eax, dword [0x100aa818]
mov dword [ebp - 0x5c], eax
je 0x10040828
mov ecx, 0xd78c9c
call fcn.10019420
mov ebx, eax
test ebx, ebx
je 0x10040825
push 4
push ebx
call edi
test eax, eax
jne 0x10040825
push 4
add ebx, 0x6a0
push ebx
call edi
test eax, eax
jne 0x10040825
mov ecx, dword [ebp - 0x5c]
mov al, byte [ebx]
mov byte [ecx + 0x34], al
mov eax, ecx
jmp 0x10040828
mov eax, dword [ebp - 0x5c]
mov al, byte [eax + 0x34]
cmp al, 1
jne 0x100408a6
mov al, 0x76
mov byte [ebp - 0xb0], 0x33
xor al, byte [ebp - 0xb0]
mov ah, 0x5c
mov byte [ebp - 0xaf], al
mov cl, 0x5f
mov al, byte [ebp - 0xb0]
mov dl, 0x13
mov bl, 0x7e
mov byte [ebp - 0xa7], 0
mov ch, 0x41
mov byte [ebp - 0xa7], 0
mov dh, 0x52
xor cl, al
xor dl, al
mov byte [ebp - 0xae], cl
xor bl, al
mov byte [ebp - 0xad], dl
xor ah, al
mov byte [ebp - 0xac], bl
xor ch, al
mov byte [ebp - 0xab], ah
xor dh, al
mov byte [ebp - 0xaa], ch
mov bh, 0x57
mov byte [ebp - 0xa9], dh
xor bh, al
lea eax, [ebp - 0xaf]
mov byte [ebp - 0xa8], bh
jmp 0x100408f4
mov ch, 0x51
mov byte [ebp - 0xc2], 0
mov al, 0x1a
mov byte [ebp - 0xc8], ch
mov cl, 0x30
mov byte [ebp - 0xc2], 0
mov dl, 0x23
mov bl, 0x24
mov ah, 0x22
xor al, ch
xor cl, ch
mov byte [ebp - 0xc7], al
xor dl, ch
mov byte [ebp - 0xc6], cl
xor bl, ch
mov byte [ebp - 0xc5], dl
xor ah, ch
mov byte [ebp - 0xc4], bl
mov byte [ebp - 0xc3], ah
lea eax, [ebp - 0xc7]
push eax
lea ecx, [ebp - 0x40]
call fcn.1000d730
mov ecx, dword [esi + 4]
mov dl, 1
call fcn.10018950
mov ecx, dword [esi]
xor dl, dl
call fcn.10018950
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
lea ecx, [ebp - 0xa4]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.10002870
mov byte [ebp - 4], 4
lea edx, [ebp - 0xa4]
mov ecx, dword [esi + 8]
call fcn.10019110
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x90]
cmp eax, 0x10
jb 0x1004095b
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.10002650
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x10040979
push 4
push ebx
call edi
test eax, eax
jne 0x10040979
push dword [ebp - 0x88]
mov ecx, ebx
call dword [0x1009d3bc]
mov ecx, dword [ebp - 0x6c]
mov bh, 7
mov edx, dword [ebp - 0x68]
mov bl, 0x28
xor bl, bh
mov eax, dword [ecx + 0x15c]
movzx eax, word [eax + edx + 0x10]
push eax
mov eax, dword [ecx + 0x15c]
mov cl, 0x63
movzx eax, word [eax + edx + 8]
mov dl, 0x27
push eax
mov al, 0x22
mov byte [ebp - 0xd8], 0
mov ah, dl
mov byte [ebp - 0xe0], bh
mov ch, al
mov byte [ebp - 0xdc], bl
mov dh, cl
mov byte [ebp - 0xd8], 0
xor al, bh
xor ah, bh
sub esp, 0x18
mov byte [ebp - 0xdf], al
xor cl, bh
mov byte [ebp - 0xdb], ah
xor ch, bh
mov byte [ebp - 0xde], cl
mov byte [ebp - 0xda], ch
lea eax, [ebp - 0xdf]
xor dl, bh
xor dh, bh
mov ecx, esp
mov byte [ebp - 0xdd], dl
push eax
mov byte [ebp - 0xd9], dh
call fcn.10002870
lea eax, [ebp - 0xf8]
push eax
call fcn.100295c0
add esp, 0x24
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x10040a1f
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0xa4]
call fcn.10002870
mov byte [ebp - 4], 6
lea edx, [ebp - 0xa4]
mov ecx, dword [esi + 0xc]
call fcn.10019110
mov eax, dword [ebp - 0x90]
cmp eax, 0x10
jb 0x10040a5b
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.10002650
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
cmp eax, 0x10
jb 0x10040a98
inc eax
lea ecx, [ebp - 0xf8]
push eax
push dword [ebp - 0xf8]
call fcn.10002650
mov ebx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x68]
mov esi, dword [esi + 0x10]
mov eax, dword [ebx + 0x15c]
movzx eax, word [eax + ecx + 0x10]
mov dword [ebp - 0x5c], eax
test esi, esi
je 0x10040af1
push 4
push esi
call edi
test eax, eax
jne 0x10040af1
lea eax, [esi + 0x140]
push 4
push eax
call edi
test eax, eax
jne 0x10040af1
lea eax, [esi + 0x13c]
push 4
push eax
call edi
test eax, eax
jne 0x10040af1
mov dword [esi + 0x140], eax
mov ecx, esi
mov eax, dword [ebp - 0x5c]
mov dword [esi + 0x13c], eax
call dword [0x1009d39c]
mov eax, dword [ebx + 0x15c]
mov esi, dword [ebp - 0x68]
movzx esi, word [eax + esi + 8]
mov eax, dword [ebp - 0x60]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x10040b35
push 4
push eax
call edi
test eax, eax
jne 0x10040b35
mov ecx, dword [ebp - 0x5c]
sub esp, 0xc
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x1009d3a0]
mov eax, dword [ebp - 0x84]
mov esi, dword [eax]
test esi, esi
je 0x10040b54
push 4
push esi
call edi
test eax, eax
jne 0x10040b54
push 1
mov ecx, esi
call dword [0x1009d358]
mov eax, dword [ebp - 0x44]
cmp eax, 0x10
jb 0x10040b69
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.10002650
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x44], 0xf
mov dword [ebp - 0x48], 0
mov byte [ebp - 0x58], 0
cmp eax, 0x10
jb 0x10040b97
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.10002650
mov esi, dword [ebp - 0x60]
jmp 0x10040bbd
mov ebx, dword [ebp - 0x84]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10040bba
push 4
push ebx
call edi
test eax, eax
jne 0x10040bba
push eax
mov ecx, ebx
call dword [0x1009d358]
mov ebx, dword [ebp - 0x6c]
add dword [ebp - 0x68], 2
add esi, 0x14
add dword [ebp - 0x84], 4
sub dword [ebp - 0x8c], 1
mov dword [ebp - 0x60], esi
jne 0x100406c0
mov edx, dword [ebp - 0x70]
lea ecx, [ebx + 0x94]
add edx, 0x34
mov dword [ebp - 0x60], ecx
lea esi, [ebx + 0xf8]
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x88], 5
mov eax, dword [ebx + 0x15c]
mov ebx, dword [edx + eax - 0x14]
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax + 0x15c]
mov eax, dword [edx + eax]
mov dword [ebp - 0x70], eax
lea eax, [ebx - 1]
cmp eax, 0x5f5e0fe
ja 0x10040d61
mov ebx, 0x35a4f8a0
mov eax, 0x10624dd3
mov ecx, 0xd78ae8
mul ebx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.10019420
mov ecx, eax
call dword [0x1009d310]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x5c], eax
test eax, eax
je 0x10040e80
push 0
lea eax, [ebp - 0x77]
mov word [ebp - 0x78], 0xb
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x77], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10002770
mov eax, dword [ebp - 0x5c]
mov edx, ebx
mov dword [ebp - 4], 7
mov cl, byte [eax + 4]
call fcn.1000f590
mov dword [ebp - 0x68], eax
test eax, eax
je 0x10040d70
cmp dword [eax + 0x48], 0
je 0x10040d70
push ebx
push eax
xor edx, edx
lea ecx, [ebp - 0xf8]
call fcn.1000f830
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x28]
cmp eax, ebx
je 0x10040cfb
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10040ce0
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002650
push ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10009430
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xe4]
cmp eax, 0x10
jb 0x10040d1d
inc eax
lea ecx, [ebp - 0xf8]
push eax
push dword [ebp - 0xf8]
call fcn.10002650
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [esi]
test ecx, ecx
je 0x10040e24
add ecx, 4
lea edx, [ebp - 0x28]
call fcn.10015230
mov eax, dword [esi]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x70]
mov dword [eax + 0x50], ebx
mov eax, dword [esi]
mov dword [eax + 0x54], ecx
mov eax, dword [esi]
mov dword [eax + 0x58], edx
test ecx, ecx
je 0x10040df0
movsx ecx, word [ecx + 0x56]
movsx eax, word [ebx + 0x66]
add ecx, eax
jmp 0x10040df4
test ebx, ebx
jne 0x10040c2c
xor eax, eax
jmp 0x10040c52
push ebx
mov ebx, dword [ebp - 0x5c]
lea ecx, [ebp - 0xf8]
push 0
mov edx, ebx
call fcn.1000f830
add esp, 8
mov dword [ebp - 0x84], eax
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x10040dc5
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10040da5
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10002650
push dword [ebp - 0x84]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.10009430
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0xe4]
cmp eax, 0x10
jb 0x10040d20
inc eax
lea ecx, [ebp - 0xf8]
push eax
push dword [ebp - 0xf8]
call fcn.10002650
jmp 0x10040d20
movsx ecx, word [ebx + 0x66]
mov eax, dword [esi]
mov dword [eax + 0x5c], ecx
mov eax, dword [esi]
mov ecx, dword [eax]
test ecx, ecx
je 0x10040e24
lea edx, [ebp - 0x28]
call fcn.10018de0
mov eax, dword [esi]
mov ebx, dword [eax]
test ebx, ebx
je 0x10040e24
push 4
push ebx
call edi
test eax, eax
jne 0x10040e24
push 1
mov ecx, ebx
call dword [0x1009d358]
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x10040e3f
push 4
push ebx
call edi
test eax, eax
jne 0x10040e3f
push dword [ebp - 0x70]
mov ecx, ebx
call dword [0x1009d3b8]
mov ebx, dword [ebp - 0x60]
mov ebx, dword [ebx]
test ebx, ebx
je 0x10040e5b
push 4
push ebx
call edi
test eax, eax
jne 0x10040e5b
push 1
mov ecx, ebx
call dword [0x1009d358]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10040fe4
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.10002650
jmp 0x10040fe4
mov ebx, dword [ecx]
test ebx, ebx
je 0x10040e98
push 4
push ebx
call edi
test eax, eax
jne 0x10040e98
push eax
mov ecx, ebx
call dword [0x1009d358]
mov ebx, dword [esi + 4]
test ebx, ebx
je 0x10040eb1
push 4
push ebx
call edi
test eax, eax
jne 0x10040eb1
push eax
mov ecx, ebx
call dword [0x1009d3b8]
cmp dword [esi], 0
je 0x10040fe4
push 0
lea eax, [ebp - 0x7b]
mov word [ebp - 0x7c], 0x2c
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 0x7b], 0
mov dword [ebp - 0x90], 0xf
mov dword [ebp - 0x94], 0
mov byte [ebp - 0xa4], 0
call fcn.10002770
mov dword [ebp - 4], 0xa
lea edx, [ebp - 0xa4]
mov ecx, dword [esi]
add ecx, 4
call fcn.10015230
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x90]
cmp eax, 0x10
jb 0x10040f2c
inc eax
lea ecx, [ebp - 0xa4]
push eax
push dword [ebp - 0xa4]
call fcn.10002650
mov eax, dword [esi]
mov dword [eax + 0x50], 0
mov eax, dword [esi]
mov dword [eax + 0x54], 0
mov eax, dword [esi]
mov dword [eax + 0x58], 0
mov eax, dword [esi]
mov dword [eax + 0x5c], 0
mov eax, dword [esi]
cmp dword [eax], 0
je 0x10040fe4
lea eax, [ebp - 0x7f]
mov word [ebp - 0x80], 0x5d
push eax
lea ecx, [ebp - 0x110]
mov byte [ebp - 0x7f], 0
call fcn.10002870
mov dword [ebp - 4], 0xb
lea edx, [ebp - 0x110]
mov ecx, dword [esi]
mov ecx, dword [ecx]
call fcn.10018de0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xfc]
cmp eax, 0x10
jb 0x10040faf
inc eax
lea ecx, [ebp - 0x110]
push eax
push dword [ebp - 0x110]
call fcn.10002650
mov eax, dword [esi]
mov dword [ebp - 0xfc], 0xf
mov dword [ebp - 0x100], 0
mov byte [ebp - 0x110], 0
mov ebx, dword [eax]
test ebx, ebx
je 0x10040fe4
push 4
push ebx
call edi
test eax, eax
jne 0x10040fe4
push eax
mov ecx, ebx
call dword [0x1009d358]
mov edx, dword [ebp - 0x8c]
add esi, 0xc
mov ecx, dword [ebp - 0x60]
add edx, 4
mov ebx, dword [ebp - 0x6c]
add ecx, 4
sub dword [ebp - 0x88], 1
mov dword [ebp - 0x8c], edx
mov dword [ebp - 0x60], ecx
jne 0x10040c00
mov esi, dword [ebp + 8]
mov al, byte [ebp - 0x61]
add al, 1
mov byte [ebp - 0x61], al
cmp al, 4
jb 0x100404b0
mov al, 1
jmp 0x10041028
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10067955
mov esp, ebp
pop ebp
ret 8