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

Disassembly:
mov eax, dword [esp + 0x70]
cmp eax, ebx
mov dword [esp + 0x58], ebx
je 0x1016b0fb
cmp eax, edi
jne 0x1016bc39
mov eax, dword [edi + 0x24]
mov esi, dword [esp + 0x2c]
lea ecx, [eax*4]
mov dword [esp + 0x18], eax
call fcn.10143be7
cmp eax, ebx
mov dword [esp + 0x3c], eax
je 0x1016bc39
mov esi, dword [esp + 0x68]
push edi
push esi
call fcn.101625b7
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x80]
lea eax, [eax + ecx*2 + 1]
mov ecx, dword [esi + 0x4c]
add esp, 8
cmp eax, ecx
jle 0x1016b149
mov dword [esi + 0x4c], eax
mov edx, dword [esp + 0x48]
mov edi, dword [edi + 0x28]
mov eax, dword [esp + 0x1c]
push edx
push edi
push eax
push 0x27
mov eax, ebp
call fcn.10147347
mov ecx, dword [ebp + 4]
mov edi, dword [ebp]
add esp, 0x10
cmp ecx, ebx
je 0x1016b1a9
cmp byte [edi + 0x38], bl
jne 0x1016b1a9
cmp eax, ebx
jge 0x1016b17a
mov eax, dword [ebp + 0x1c]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
call fcn.10147587
mov eax, dword [esp + 0x40]
cmp eax, ebx
mov dword [esi + 0x10], ebx
jne 0x1016b1a0
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x1016b1b7
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xfa
jmp 0x1016b1b7
mov ecx, dword [esp + 0x40]
mov eax, 0xfffffff0
call fcn.10147587
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x40], ecx
jg 0x1016b1db
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x1016b1db
mov eax, 1
jmp 0x1016b206
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x5c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x5e
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, esi
mov esi, dword [ebp + 4]
cmp esi, ebx
mov edi, dword [ebp]
je 0x1016b260
cmp byte [edi + 0x38], bl
jne 0x1016b260
cmp eax, ebx
jge 0x1016b21d
mov eax, dword [ebp + 0x1c]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [esi + edx*4 + 1]
mov ecx, dword [esi + edx*4 + 0x10]
lea esi, [esi + edx*4]
call fcn.10147587
mov ecx, dword [esp + 0x40]
cmp ecx, ebx
mov dword [esi + 0x10], ebx
jne 0x1016b244
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x1016b26b
call fcn.101396e7
mov edx, dword [ebp]
mov ebx, eax
mov eax, ecx
call fcn.10143d87
mov dword [esi + 0x10], eax
mov byte [esi + 1], 0xff
xor ebx, ebx
jmp 0x1016b26b
mov ecx, dword [esp + 0x40]
xor eax, eax
call fcn.10147587
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0x14], ebx
jl 0x1016b2ca
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016b28a
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b2b9
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x78]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x14]
add ecx, edx
mov byte [eax], 7
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
cmp ecx, eax
mov dword [esp + 0x14], ecx
jle 0x1016b277
cmp eax, ebx
mov dword [esp + 0x14], ebx
jle 0x1016b332
jmp 0x1016b2d7
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016b2ea
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b321
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x14]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [esp + 0x78]
lea ecx, [ecx + edx + 1]
mov byte [eax], 0xa
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x1016b2d7
mov eax, ebp
call fcn.10147467
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x40], eax
cmp dword [ebp + 0x20], esi
jg 0x1016b350
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b37d
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x40]
mov byte [eax], 0x48
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
mov dword [esp + 0x60], esi
jg 0x1016b394
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b3c1
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x78]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x14
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], 1
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
jle 0x1016b5c0
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016b3e2
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b413
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x14]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x50]
mov byte [eax], 0x1d
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [esp + 0x14], ebx
jne 0x1016b461
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016b433
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x1016b433
mov esi, 1
jmp 0x1016b45d
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x78]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
inc edx
mov byte [eax], 0x1c
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x58], esi
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x14]
mov esi, dword [ecx + edx*4]
cmp esi, ebx
mov eax, dword [esp + 0x68]
mov eax, dword [eax]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
mov cl, byte [edx + 0x4d]
mov dl, byte [eax + 0x81]
mov byte [esp + 0x12], cl
mov byte [esp + 0x13], dl
je 0x1016b4a8
movzx ecx, dl
push ecx
push esi
push eax
call fcn.10151757
mov cl, byte [esp + 0x1e]
mov dl, byte [esp + 0x1f]
add esp, 0xc
jmp 0x1016b4ab
mov eax, dword [eax + 8]
cmp eax, ebx
je 0x1016b4b9
movzx edi, cl
lea edi, [edi + edi*4]
lea eax, [eax + edi*4 - 0x14]
cmp dl, bl
mov dword [esp + 0x28], eax
jne 0x1016b4de
cmp eax, ebx
je 0x1016b4ca
cmp dword [eax + 0xc], ebx
jne 0x1016b4de
mov edx, dword [esp + 0x68]
push eax
push edx
mov eax, esi
call fcn.10159647
add esp, 8
mov dword [esp + 0x28], eax
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016b4f8
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x1016b4f8
mov eax, 1
jmp 0x1016b535
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x50]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x14]
add edx, ecx
mov ecx, dword [esp + 0x78]
lea edx, [edx + ecx + 1]
mov byte [eax], 0x4b
mov byte [eax + 3], bl
mov dword [eax + 8], ebx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, esi
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov edi, dword [ebp]
mov dword [esp + 0x54], eax
je 0x1016b580
cmp byte [edi + 0x38], bl
jne 0x1016b580
cmp eax, ebx
jge 0x1016b550
mov eax, dword [ebp + 0x1c]
dec eax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
call fcn.10147587
cmp dword [esp + 0x28], ebx
mov dword [esi + 0x10], ebx
jne 0x1016b573
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x1016b58e
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x10], ecx
mov byte [esi + 1], 0xfc
jmp 0x1016b58e
mov ecx, dword [esp + 0x28]
mov eax, recvfrom
call fcn.10147587
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x1016b5af
mov ecx, dword [ebp + 0x1c]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 0x80
mov eax, dword [esp + 0x18]
inc edx
cmp edx, eax
mov dword [esp + 0x14], edx
jl 0x1016b3cf
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016b5d3
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b5fc
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x40]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 1
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x18]
xor esi, esi
cmp eax, ebx
jle 0x1016b6eb
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + esi*4]
cmp eax, ebx
jl 0x1016b626
mov ecx, dword [ebp + 0x1c]
cmp ecx, eax
jbe 0x1016b626
mov edx, dword [ebp + 4]
lea eax, [eax + eax*4]
mov dword [edx + eax*4 + 8], ecx
cmp esi, ebx
jne 0x1016b643
mov ecx, dword [esp + 0x58]
cmp ecx, ebx
jl 0x1016b643
mov eax, dword [ebp + 0x1c]
cmp eax, ecx
jbe 0x1016b643
mov edx, dword [ebp + 4]
lea ecx, [ecx + ecx*4]
mov dword [edx + ecx*4 + 8], eax
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x54], eax
jg 0x1016b65e
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b68f
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x78]
inc ecx
mov dword [ebp + 0x1c], ecx
mov ecx, dword [ebp + 4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea ecx, [esi + edx + 1]
mov byte [eax], 0x14
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], 1
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x54], eax
jg 0x1016b6aa
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b6de
mov eax, dword [esp + 0x54]
inc dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x18]
mov dword [eax + 4], ecx
lea ecx, [esi + edx]
mov edx, dword [esp + 0x78]
lea ecx, [ecx + edx + 1]
mov byte [eax], 0x1d
mov byte [eax + 3], bl
mov dword [eax + 8], esi
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x1016b60a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2c]
call fcn.101394e7
mov eax, dword [ebp + 0x28]
cmp eax, ebx
je 0x1016b711
mov edx, dword [esp + 0x40]
lea ecx, [edx*4 + 4]
mov edx, dword [ebp + 0x1c]
sub eax, ecx
mov dword [eax], edx
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016b724
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b751
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x60]
mov byte [eax], 0x5f
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016b764
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b78d
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov byte [eax], 0x2d
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016b7a0
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b7cd
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x78]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x24]
mov byte [eax], 0xf
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
cmp dword [esp + 0x20], ebx
jge 0x1016b81a
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016b7ed
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x1016b7ed
mov esi, 1
jmp 0x1016b816
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x78]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x1c
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov dword [esp + 0x20], esi
cmp dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
jle 0x1016babe
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016b842
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x1016b842
mov eax, 1
jmp 0x1016b86d
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x44]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov byte [eax], 0x5e
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, esi
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov edi, dword [ebp]
je 0x1016b8f7
cmp byte [edi + 0x38], bl
jne 0x1016b8f7
cmp eax, ebx
jge 0x1016b888
mov eax, dword [ebp + 0x1c]
dec eax
lea eax, [eax + eax*4]
lea esi, [ecx + eax*4]
movsx eax, byte [esi + 1]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x60], esi
call fcn.10147587
mov dword [esi + 0x10], ebx
mov eax, 0x101738ec
nop
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x1016b8a7
mov esi, dword [ebp]
sub eax, 0x101738ec
and eax, 0x3fffffff
lea ecx, [eax + 1]
mov dword [esp + 0x58], eax
call fcn.10143be7
cmp eax, ebx
je 0x1016b8ea
mov ecx, dword [esp + 0x58]
mov edx, ecx
shr ecx, 2
mov esi, 0x101738ec
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov byte [eax + ecx], bl
mov ecx, dword [esp + 0x60]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xff
jmp 0x1016b903
mov ecx, 0x101738ec
xor eax, eax
call fcn.10147587
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016b916
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b945
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
mov esi, dword [esp + 0x44]
lea eax, [eax + edx*4]
mov byte [eax], 0x5b
mov byte [eax + 3], bl
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
jmp 0x1016b949
mov esi, dword [esp + 0x44]
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x60], eax
jg 0x1016b964
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b995
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc ecx
mov dword [ebp + 0x1c], ecx
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
mov dword [eax + 4], ecx
lea ecx, [edx + ecx + 1]
mov byte [eax], 0x56
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x60], eax
jg 0x1016b9b0
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016b9d9
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
inc ecx
mov dword [ebp + 0x1c], ecx
mov byte [eax], 0x14
mov byte [eax + 3], bl
mov dword [eax + 4], esi
mov dword [eax + 8], reloc.WINMM.dll_midiStreamOut
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x60], eax
jg 0x1016b9f4
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016ba25
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc ecx
mov dword [ebp + 0x1c], ecx
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x14]
lea ecx, [edx + ecx + 1]
mov byte [eax], 0x59
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x60], eax
jg 0x1016ba40
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016ba65
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp + 0x1c]
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
lea eax, [eax + edx*4]
inc ecx
mov dword [ebp + 0x1c], ecx
mov byte [eax], 0x90
mov byte [eax + 3], bl
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], eax
mov dword [esp + 0x60], eax
jg 0x1016ba80
mov edi, ebp
call fcn.101472c7
std
invalid
test eax, eax
jne 0x1016baa9
std
inc dword [ebp - reloc.WINMM.dll_midiStreamOut]
inc esp
and al, 0x60
mov eax, dword [esp + 0x60]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc ecx
mov dword [ebp + 0x1c], ecx
lea ecx, [eax + eax*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x24]
mov byte [eax], 0x5b
mov byte [eax + 3], bl
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x1016b828
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016bad8
mov edi, ebp
call fcn.101472c7
test eax, eax
je 0x1016bad8
mov eax, 1
jmp 0x1016bb0b
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x4c]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x38]
mov byte [eax], 0x1f
mov byte [eax + 3], bl
mov dword [eax + 4], edx
mov dword [eax + 8], 3
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, esi
mov ecx, dword [ebp + 4]
cmp ecx, ebx
mov edi, dword [ebp]
je 0x1016bb97
cmp byte [edi + 0x38], bl
jne 0x1016bb97
cmp eax, ebx
jge 0x1016bb26
mov eax, dword [ebp + 0x1c]
dec eax
lea edx, [eax + eax*4]
movsx eax, byte [ecx + edx*4 + 1]
lea esi, [ecx + edx*4]
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x60], esi
call fcn.10147587
mov dword [esi + 0x10], ebx
mov eax, 0x10188c6c
mov edi, edi
mov cl, byte [eax + 1]
inc eax
cmp cl, bl
jne 0x1016bb47
mov esi, dword [ebp]
sub eax, 0x10188c6c
and eax, 0x3fffffff
lea ecx, [eax + 1]
mov dword [esp + 0x58], eax
call fcn.10143be7
cmp eax, ebx
je 0x1016bb8a
mov ecx, dword [esp + 0x58]
mov edx, ecx
shr ecx, 2
mov esi, 0x10188c6c
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
mov byte [eax + ecx], bl
mov ecx, dword [esp + 0x60]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xff
jmp 0x1016bba3
mov ecx, 0x10188c6c
xor eax, eax
call fcn.10147587
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016bbb6
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016bbe3
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x74]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x34]
mov byte [eax], 0x38
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
cmp dword [ebp + 0x20], esi
jg 0x1016bbf6
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016bc27
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 4]
mov edx, dword [esp + 0x74]
inc eax
mov dword [ebp + 0x1c], eax
lea eax, [esi + esi*4]
lea eax, [ecx + eax*4]
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x34]
mov byte [eax], 0x39
mov byte [eax + 3], bl
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov ecx, dword [ebp + 4]
cmp ecx, ebx
je 0x1016bc39
mov eax, dword [ebp + 0x1c]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 8
mov ecx, dword [esp + 0x30]
mov edi, dword [ecx + 0x14]
cmp edi, ebx
mov dword [esp + 0x30], edi
jne 0x1016b0e7
mov eax, dword [esp + 0x6c]
cmp dword [eax + 8], ebx
jne 0x1016bcd6
mov edx, dword [esp + 0x48]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push 0x27
mov eax, ebp
call fcn.10147347
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add esp, 0x10
cmp eax, esi
jg 0x1016bc88
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016bcb5
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x1c]
inc eax
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x24]
mov byte [eax], 0x20
mov byte [eax + 3], bl
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov eax, dword [esp + 0x1c]
push eax
push 0x2d
mov eax, ebp
call fcn.101473f7
mov ecx, dword [esp + 0x2c]
push ecx
push 0x1c
mov eax, ebp
call fcn.101473f7
add esp, 0x10
jmp 0x1016bcfb
mov eax, dword [esp + 0x20]
cmp eax, ebx
jl 0x1016bcef
mov ecx, dword [ebp + 0x1c]
cmp ecx, eax
jbe 0x1016bcef
lea edx, [eax + eax*4]
mov eax, dword [ebp + 4]
mov dword [eax + edx*4 + 8], ecx
push 1
mov eax, ebp
call fcn.101473a7
add esp, 4
mov esi, dword [ebp + 0x1c]
mov dword [esp + 0x20], eax
cmp dword [ebp + 0x20], esi
jg 0x1016bd12
mov edi, ebp
call fcn.101472c7
test eax, eax
jne 0x1016bd3b
mov eax, dword [ebp + 0x1c]
mov edx, dword [ebp + 4]
inc eax
mov dword [ebp + 0x1c], eax
lea ecx, [esi + esi*4]
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x5c]
mov byte [eax], 0xa
mov byte [eax + 3], bl
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov byte [eax + 1], bl
mov esi, dword [ebp + 0x1c]
push ebp
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov eax, ecx
mov edx, ecx
add eax, esi
cmp edi, esi
jbe 0x101a6e37
cmp edi, eax
jb 0x101a6fb3
test edi, 3
jne 0x101a6e53
shr ecx, 2
and edx, 3
cmp ecx, 8
jb 0x101a6e73
rep movsd dword es:[edi], dword [esi]
jmp dword [edx*4 + 0x1010101c]
mov eax, edi
mov edx, 3
sub ecx, 4
jb 0x101a6e6b
and eax, 3
add ecx, eax
jmp dword [eax*4 + 0x10100f30]
jmp dword [ecx*4 + 0x1010102c]
jmp dword [ecx*4 + 0x10100fb0]
lea esi, [ecx + esi - 4]
lea edi, [ecx + edi - 4]
test edi, 3
jne 0x101a6fe7
shr ecx, 2
and edx, 3
cmp ecx, 8
jb case.default.0x101a6fd2
std
rep movsd dword es:[edi], dword [esi]
cld
jmp dword [edx*4 + 0x101011b8]
neg ecx
jmp dword [ecx*4 + 0x10101168]
mov eax, edi
mov edx, 3
cmp ecx, 4
jb switch.0x101a6fff
and eax, 3
sub ecx, eax
jmp dword [eax*4 + 0x101010bc]
jmp dword [ecx*4 + 0x101011b8]